Skip to content

Commit 3e58233

Browse files
authored
Removes None type from max_info_rows (#54652)
* Update config_init.py max_info_rows doesn't support None type * Update config_init.py changed max_info_rows validator to int type
1 parent 1845699 commit 3e58233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/config_init.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def use_numba_cb(key) -> None:
265265
"""
266266

267267
pc_max_info_rows_doc = """
268-
: int or None
268+
: int
269269
df.info() will usually show null-counts for each column.
270270
For large frames this can be quite slow. max_info_rows and max_info_cols
271271
limit this null check only to frames with smaller dimensions than
@@ -322,7 +322,7 @@ def is_terminal() -> bool:
322322
"max_info_rows",
323323
1690785,
324324
pc_max_info_rows_doc,
325-
validator=is_instance_factory((int, type(None))),
325+
validator=is_int,
326326
)
327327
cf.register_option("max_rows", 60, pc_max_rows_doc, validator=is_nonnegative_int)
328328
cf.register_option(

0 commit comments

Comments
 (0)