The use of __repr__ or to_string columns is reduced by 50 characters by default. In versions of Pandas older than 0.13.1, this can be controlled using pandas.set_printoptions() :
In [64]: df Out[64]: AB a this is a very long string, longer than the defau bar b foo baz In [65]: pandas.set_printoptions(max_colwidth=100) In [66]: df Out[66]: AB a this is a very long string, longer than the default max_column width bar b foo baz
In later versions of Pandas use instead:
pd.options.display.max_colwidth = 100
Wouter overmeire
source share