From 58feb19902187c356bc7549170a99dd9de2a2dae Mon Sep 17 00:00:00 2001 From: Terry Moschou <5567550+tmoschou@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:19:32 +0930 Subject: [PATCH] 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 --- pandas/core/config_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 3c3d21e58efaf..5456e2f35778c 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -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 = """