From 186fe12f1d61b63d8f5b79de2e73c777f9cfa0f8 Mon Sep 17 00:00:00 2001 From: Raghav <83136390+Raghav-Bell@users.noreply.github.com> Date: Mon, 21 Aug 2023 00:09:28 +0530 Subject: [PATCH 1/2] Update config_init.py max_info_rows doesn't support None type --- pandas/core/config_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 27e9bf8958ab0..93c8a0c2e9e51 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 or None +: int 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 From 193f94572ba043fd6c64c6a2d9eea80d459c5680 Mon Sep 17 00:00:00 2001 From: Raghav <83136390+Raghav-Bell@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:40:26 +0530 Subject: [PATCH 2/2] Update config_init.py changed max_info_rows validator to int type --- pandas/core/config_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 93c8a0c2e9e51..1dc09388b698f 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -322,7 +322,7 @@ def is_terminal() -> bool: "max_info_rows", 1690785, pc_max_info_rows_doc, - validator=is_instance_factory((int, type(None))), + validator=is_int, ) cf.register_option("max_rows", 60, pc_max_rows_doc, validator=is_nonnegative_int) cf.register_option(