From 918704a770f30fbe4ddaa929a842fb69a84a4ddb Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Tue, 26 Sep 2023 23:09:03 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('255c0357-f0e0-451c-a9f7-6d139d44b365') --- pandas/core/config_init.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 1dc09388b698f..7d511bc20a193 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -265,7 +265,7 @@ def use_numba_cb(key) -> None: """ pc_max_info_rows_doc = """ -: int +: int or None df.info() will usually show null-counts for each column. For large frames this can be quite slow. max_info_rows and max_info_cols limit this null check only to frames with smaller dimensions than @@ -322,7 +322,7 @@ def is_terminal() -> bool: "max_info_rows", 1690785, pc_max_info_rows_doc, - validator=is_int, + validator=is_instance_factory((int, type(None))), ) cf.register_option("max_rows", 60, pc_max_rows_doc, validator=is_nonnegative_int) cf.register_option( @@ -899,4 +899,4 @@ def register_converter_cb(key) -> None: "dtype, which will be the default in pandas 3.0 " "(at which point this option will be deprecated).", validator=is_one_of_factory([True, False]), - ) + ) \ No newline at end of file