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 6247580 commit 396e6deCopy full SHA for 396e6de
pandas/_libs/src/parser/tokenizer.c
@@ -413,8 +413,10 @@ static int end_line(parser_t *self) {
413
return 0;
414
}
415
416
- if (!(self->lines <= self->header_end + 1) && (fields > ex_fields) &&
417
- !(self->usecols)) {
+ bool past_headers = (self->lines > self->header_end + 1) ||
+ (self->lines == 1 && self->header_end == 0);
418
+
419
+ if (past_headers && (fields > ex_fields) && !(self->usecols)) {
420
// increment file line count
421
self->file_lines++;
422
0 commit comments