Set
pd.options.display.large_repr = 'info'
The default default v.0.13 is "truncate".
In [93]: df = pd.DataFrame(np.arange(4319*2).reshape(4319,2)) In [94]: pd.options.display.large_repr = 'info' In [95]: df Out[95]: <class 'pandas.core.frame.DataFrame'> Int64Index: 4319 entries, 0 to 4318 Data columns (total 2 columns): 0 4319 non-null int32 1 4319 non-null int32 dtypes: int32(2)
I found this by searching for the string 'info()' in the output:
In [65]: pd.set_option?
To make this default behavior for interactive sessions:
If you have not set it yet, define the PYTHONSTARTUP environment variable for something like /home/user/bin/startup.py
Then edit / create /home/user/bin/startup.py to contain something like
import pandas as pd pd.options.display.large_repr = 'info'
Now, when you start an interactive Python session, the startup.py file will be executed, you will have access to pandas via the pd variable, and large_repr will default to 'info' .
source share