Skip to content

Commit e394592

Browse files
committed
Added future flag for usecols_use_order
1 parent 7971351 commit e394592

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/core/config_init.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,3 +897,13 @@ def register_converter_cb(key: str) -> None:
897897
"(at which point this option will be deprecated).",
898898
validator=is_one_of_factory([True, False]),
899899
)
900+
901+
cf.register_option(
902+
"usecols_use_order",
903+
False,
904+
": bool\n "
905+
"Whether usecols parameter will use order of input when "
906+
"making a DataFrame. \n This feature will be default in pandas 3.0"
907+
"(at which point this option will be deprecated).",
908+
validator=is_one_of_factory([True, False]),
909+
)

0 commit comments

Comments
 (0)