October 2019
Beginner to intermediate
674 pages
16h 43m
English
pandas allows the users to modify some display and formatting options.
The get_option() and set_option() commands let the user view the current setting and change it:
pd.get_option("display.max_rows")Output: 60pd.set_option("display.max_rows", 120)pd.get_option("display.max_rows")Output: 120pd.reset_option("display.max_rows")pd.get_option("display.max_rows")Output: 60
The preceding options discussed set and reset the number of rows that are displayed when a dataframe is printed. Some of the other useful display options are the following:
Read now
Unlock full access