Skip to content

Option to set large_repr to info(verbose=False) missing #6568

Closed
@bjonen

Description

@bjonen

In v0.13.1 the default representation for pd.DataFrame changed. I would like to be able to restore the previous default (see http://pandas.pydata.org/pandas-docs/stable/whatsnew.html#dataframe-repr-changes)

The option display.large_repr only allows to set info(verbose=True) as default. The default in previous version of pandas was info(verbose=False) however. The effect is that displaying a DataFrame with a large number of columns creates a lot of output.

Am I missing an easy way to change this behavior? Otherwise I suggest adding an option, e.g. truncate, info_short, info_long.

display.large_repr: [default: truncate] [currently: info]
: 'truncate'/'info'

    For DataFrames exceeding max_rows/max_cols, the repr (and HTML repr) can
    show a truncated table (the default from 0.13), or switch to the view from
    df.info() (the behaviour in earlier versions of pandas).

pd.show_versions()

INSTALLED VERSIONS

commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.13.1
Cython: None
numpy: 1.8.0
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 1.2.0
sphinx: 1.2.1
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.2
pytz: 2013.9
bottleneck: 0.8.0
tables: 3.1.0
numexpr: 2.3
matplotlib: 1.3.1
openpyxl: 1.8.3
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: 0.5.2
sqlalchemy: None
lxml: 3.3.1
bs4: 4.3.2
html5lib: 0.999
bq: None
apiclient: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions