-
- Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
BugEnhancementOutput-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string
Milestone
Description
According to the description of max_columns, should switch to "smaller" (at the beginning to info, nowadays to truncate) view when set to zero instead of wrapping around.
display.max_columns: [default: 20] [currently: 0] : 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. In case python/IPython is running in a terminal this can be set to 0 and pandas will correctly auto-detect the width the terminal and swap to a smaller format in case all columns would not fit vertically. The IPython notebook, IPython qtconsole, or IDLE do not run in a terminal and hence it is not possible to do correct auto-detection. 'None' value means unlimited. Originally introduced here #453 (comment)
Fixed after broken here: #2881
Behavior change (broken again) here #5550
Metadata
Metadata
Assignees
Labels
BugEnhancementOutput-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string
