Set column width in pandas dataframe

Viewed 5385

Searching for this topic and found a solution but doesn't work for me The code I am working on (part of it like that)

pd.set_option('max_colwidth', 1000)
df = pd.DataFrame(list)

The line of setting the max colwidth: I tried to put this line before the df line and another try after the df line but the output still the same.. Any ideas?

1 Answers

You can try setting the others parameters also like:

pd.set_option('display.max_columns', 1000, 'display.width', 1000, 'display.max_rows',1000)
Related