We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79067a7 commit cf5288cCopy full SHA for cf5288c
pandas/io/parsers/arrow_parser_wrapper.py
@@ -100,6 +100,12 @@ def _get_pyarrow_options(self) -> None:
100
)
101
}
102
self.convert_options["strings_can_be_null"] = "" in self.kwds["null_values"]
103
+ # autogenerated column names are prefixed with 'f' in pyarrow.csv
104
+ if self.header is None and "include_columns" in self.convert_options:
105
+ self.convert_options["include_columns"] = [
106
+ f"f{n}" for n in self.convert_options["include_columns"]
107
+ ]
108
+
109
self.read_options = {
110
"autogenerate_column_names": self.header is None,
111
"skip_rows": self.header
0 commit comments