Skip to content

Commit 6a36027

Browse files
tmoschouphofl
authored andcommitted
DOC: Document default value for options.display.max_cols when not running 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
1 parent 84f7ddb commit 6a36027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/config_init.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ def use_numba_cb(key) -> None:
131131
a summary view. 'None' value means unlimited.
132132
133133
In case python/IPython is running in a terminal and `large_repr`
134-
equals 'truncate' this can be set to 0 and pandas will auto-detect
134+
equals 'truncate' this can be set to 0 or None and pandas will auto-detect
135135
the width of the terminal and print a truncated object which fits
136136
the screen width. The IPython notebook, IPython qtconsole, or IDLE
137137
do not run in a terminal and hence it is not possible to do
138-
correct auto-detection.
138+
correct auto-detection and defaults to 20.
139139
"""
140140

141141
pc_max_categories_doc = """

0 commit comments

Comments
 (0)