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