Skip to content
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

max_columns=0 no longer switches over to summary view #2856

Closed
lodagro opened this issue Feb 12, 2013 · 5 comments
Closed

max_columns=0 no longer switches over to summary view #2856

lodagro opened this issue Feb 12, 2013 · 5 comments
Labels
Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@lodagro
Copy link
Contributor

lodagro commented Feb 12, 2013

In [1]: import pandas as pd

In [2]: import numpy as np

In [3]: pd.set_option('line_width', 250)

In [4]: pd.set_option('max_columns', 0)

In [5]: pd.describe_option('max_columns')
display.max_columns: 
: int
        max_rows and max_columns are used in __repr__() methods to decide if
        to_string() or info() is used to render an object to a string.
        Either one, or both can be set to 0 (experimental). Pandas will figure
        out how big the terminal is and will not display more rows or/and
        columns that can fit on it.


In [6]: pd.util.terminal.get_terminal_size()
Out[6]: (138, 43)

In [7]: df = pd.DataFrame(np.random.randn(2,50))

df wraps it columns, but no switch over to summary view

In [9]: pd.__version__
Out[9]: '0.11.0.dev-dad367e'

see also mailing list

@ghost
Copy link

ghost commented Feb 12, 2013

Just making sure you're aware of the shiny pd.options shortcut with tab completion.

@lodagro
Copy link
Contributor Author

lodagro commented Feb 13, 2013

@y-p thanks for the tip!

@ghost
Copy link

ghost commented Apr 12, 2013

@lodagro wants to put finishing touches on #2856. Note the 0.11 issue
queue is empty now, so better be quick...

lodagro added a commit to lodagro/pandas that referenced this issue Apr 12, 2013
@lodagro
Copy link
Contributor Author

lodagro commented Apr 12, 2013

done, i pushed directly to master

@lodagro lodagro closed this as completed Apr 12, 2013
@ghost
Copy link

ghost commented Apr 12, 2013

Thanks. if you have some spare cycles, help us chase down perf regressions in #3326

yarikoptic added a commit to neurodebian/pandas that referenced this issue Jun 3, 2013
Version 0.11 RC 1

* tag 'v0.11.0rc1': (647 commits)
  RLS: version 0.11 release candidate 1
  TST: py3 compat on test_pickle.py
  TST: properly raise the quoted exception when trying to unpickle on py2
  BUG: fix raw path to github raw data file
  DOC add missing arguments to to_datetime docstring
  PERF: series construction perf enhancements, use a fast path based on dtype
  PERF/CLN: infer Period in infer_dtype, later index inference is faster
  TST: run benchmark for repr wide frame with/without interactive mode
  PERF: fixed int64 indexing perf issue when conversion to int64
  DOC: fix typo
  WIP: finish on pandas-dev#2856
  DOC: add docstring
  BLD: travis make nose test selection clear via env_var
  BUG: segfault when set_index with MultiIndex. close pandas-dev#3308
  BUG: ensure index casting works even in Int64Index
  ENH: added py3 pickles, revsied to include SparseSeries/SparseDataFrame/Index/MultiIndex
  BUG: reading py2 pickles in py3 ok now
  BLD: fix setup.py to load correctly data files
  ENH: added legacy pickel generation/testing suppport
  CLN: moved all data for tests to /data sub-dir of the tests
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

1 participant