Skip to content

Commit

Permalink
DOC: Document default value for options.display.max_cols when not run…
Browse files Browse the repository at this point in the history
…ning in terminal (pandas-dev#48672)

DOC: Document default value for options.display.max_cols

display.max_cols has a default value of 20 when not running in a terminal
such as Jupyter Notebook
  • Loading branch information
tmoschou authored and noatamir committed Nov 9, 2022
1 parent aaf4a3f commit 208ad89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/config_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def use_numba_cb(key) -> None:
a summary view. 'None' value means unlimited.
In case python/IPython is running in a terminal and `large_repr`
equals 'truncate' this can be set to 0 and pandas will auto-detect
equals 'truncate' this can be set to 0 or None and pandas will auto-detect
the width of the terminal and print a truncated object which fits
the screen width. The IPython notebook, IPython qtconsole, or IDLE
do not run in a terminal and hence it is not possible to do
correct auto-detection.
correct auto-detection and defaults to 20.
"""

pc_max_categories_doc = """
Expand Down

0 comments on commit 208ad89

Please sign in to comment.