Skip to content

Commit 03c6d00

Browse files
committed
CLN: remove redundant check
1 parent bf6970b commit 03c6d00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/parsers/arrow_parser_wrapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ def _adjust_column_names(self, frame: DataFrame) -> tuple[DataFrame, bool]:
179179
multi_index_named = True
180180
if self.header is None:
181181
if self.names is None:
182-
if self.header is None:
183-
self.names = range(num_cols)
182+
self.names = range(num_cols)
184183
if len(self.names) != num_cols:
185184
# usecols is passed through to pyarrow, we only handle index col here
186185
# The only way self.names is not the same length as number of cols is

0 commit comments

Comments
 (0)