-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to set large_repr to info(verbose=False) missing #6568
Comments
can you give an example (and picture) of the 3 scenarios? |
Sure, here comes an example for a large DataFrame.
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
Out[10]: |
see from the ML (this related, not identical): https://groups.google.com/forum/#!topic/pydata/wyhbADpsUss |
To be clear, I do not want to change the default. I understand it is difficult to satisfy everyone's preferences. For people working on large Then one could edit (among others): https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L448
to something like
|
I agree with this, but instead of splitting that option, maybe add pls submit a PR, need to update the docs on this (I think FAQ and/or a section in basics), mostly describes the options for display. |
not really an API change, but allowing one to specify an option here. |
Ok sounds good. |
@bjonen want to submit a PR for this? |
Yes, will do. |
@bjonen ping! |
I didn't have much free time the last week, but I have a draft for #5603 (comment) |
ok gr8 |
closed by #7130 |
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'
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
The text was updated successfully, but these errors were encountered: