Set DataFrame display options

It’s straightforward to change the way pandas DataFrames are displayed in a Jupyter Notebook. I typically include this code in the same cell as my import statements:

pd.set_option(‘max_colwidth’, 1000) # Show up to 1000 characters within each cell
pd.set_option(‘max_rows’, 20) # Show up to 20 dataframe rows
pd.set_option(‘max_columns’, 1000) # Show up to 1000 columns