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
With these settings, I can fully read cells that may contain a lot of text. I won’t have to worry about overly long dataframes, but I can scroll to the right and left to my heart’s content.
Play around with these options and find what works for you. For more, you can check out this aspect of the pandas documentation here.