Skip to content

Set pd.options.display.max_rows = 20 by default #20514

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ display.max_info_rows 1690785 df.info() will usually show
and max_info_cols limit this null
check only to frames with smaller
dimensions then specified.
display.max_rows 60 This sets the maximum number of rows
display.max_rows 20 This sets the maximum number of rows
pandas should output when printing
out various output. For example,
this value determines whether the
Expand Down
5 changes: 5 additions & 0 deletions doc/source/whatsnew/v0.23.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,11 @@ yourself. To revert to the old setting, you can run this line:

pd.options.display.max_columns = 20

Furthermore, the default value for the maximum number of displayed rows is now
20 (instead of 60) (``pd.options.display.max_rows=20``) (:issue:`20514`). This
makes it easier to get an overview of a large dataframe in most standard
terminal windows.

.. _whatsnew_0230.api.datetimelike:

Datetimelike API Changes
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/config_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def table_schema_cb(key):
cf.register_option('column_space', 12, validator=is_int)
cf.register_option('max_info_rows', 1690785, pc_max_info_rows_doc,
validator=is_instance_factory((int, type(None))))
cf.register_option('max_rows', 60, pc_max_rows_doc,
cf.register_option('max_rows', 20, pc_max_rows_doc,
validator=is_instance_factory([type(None), int]))
cf.register_option('max_categories', 8, pc_max_categories_doc,
validator=is_int)
Expand Down