Visualization Options for Jupyter Notebooks

Last updated:
Table of Contents

Pandas dataframe: Show full text columns

use pandas.set_option('display.max_colwidth',1000):

Say you have a column named 'synopsis' with text data:

before-set-option the default value for this setting is 50
  
after-set-option 1000 looks like enough

Pandas dataframe: set max display columns

use pandas.set_option('display.max_columns',1000)

Show complete numpy arrays and pandas Series

import numpy as np

# show 
np.set_printoptions(threshold=1000)

Show more edge items

import numpy as np

# show 10 elements on either side
np.set_printoptions(edgeitems=10)

References

Dialogue & Discussion