Skip to content

Commit 2ba6a4d

Browse files
Replace "hack" comment with a more informative one
1 parent 77486c6 commit 2ba6a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/parsers.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ cdef class TextReader:
13161316
else:
13171317
if self.header is not None:
13181318
j = i - self.leading_cols
1319-
# hack for #2442 and #26218
1319+
# generate extra (bogus) headers if there are more columns than headers
13201320
if j >= len(self.header[0]):
13211321
return j
13221322
else:

0 commit comments

Comments
 (0)