Closed
Description
So should do something with the headers (maybe do a '....')
In [2]: df = DataFrame(1,index=range(2),columns=['short','really long'])
In [3]: df
Out[3]:
short really long
0 1 1
1 1 1
[2 rows x 2 columns]
In [6]: with pd.option_context('display.max_colwidth',5):
...: print(df)
...:
short really long
0 1 1
1 1 1
[2 rows x 2 columns]