Skip to content

Commit 46f5353

Browse files
committed
Add display.max_groups to config
1 parent 4a3911a commit 46f5353

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/config_init.py

+7
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ def use_numexpr_cb(key):
9191
correct auto-detection.
9292
"""
9393

94+
pc_max_groups_doc = """
95+
: int
96+
If max_groups is exceeded, switch to truncate groupby view. 'None' value
97+
means unlimited.
98+
"""
99+
94100
pc_min_rows_doc = """
95101
: int
96102
The numbers of rows to show in a truncated view (when `max_rows` is
@@ -336,6 +342,7 @@ def is_terminal() -> bool:
336342
validator=is_instance_factory((int, type(None))),
337343
)
338344
cf.register_option("max_rows", 60, pc_max_rows_doc, validator=is_nonnegative_int)
345+
cf.register_option("max_groups", 10, pc_max_groups_doc, validator=is_nonnegative_int)
339346
cf.register_option(
340347
"min_rows",
341348
10,

0 commit comments

Comments
 (0)