Peter.k
Peter.k

Reputation: 1548

How to disable cell truncation in Jupyter Notebook?

I have data frame:

SUMMARY                     VERB EXISTING   NOUN
FULL: CHANGE OF USE FROM 
DWELLING (C3) TO REGI...    NaN             Jess

Which option should I choose to see the whole cell content?

It's pandas dataframe, I've set some like

pd.options.display.max_rows = 1000
pd.options.display.width = 1000

but still no result.


#'s

Get rid of ellipsis
Make columns wider

Upvotes: 2

Views: 5185

Answers (2)

Guy NANA
Guy NANA

Reputation: 113

To disable cell truncation regardless of the length of the value/string in your cell, you can use the new and simple syntax of pandas.set_option with display.max_colwidth st to None: pandas.set_option('display.max_colwidth', None). It'll override the default width of 50 characters.

Upvotes: 0

piRSquared
piRSquared

Reputation: 294526

pd.set_option and 'display.max_colwidth'

pd.set_option(
    'display.max_colwidth', 100
)

From Docs

enter image description here

Upvotes: 3

Related Questions