Skip to content

Commit 8b314c5

Browse files
committed
Changed a condition to account for data chunks that start with newline.
1 parent a6ae1af commit 8b314c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/src/parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ int tokenize_delimited(parser_t *self, size_t line_limit)
854854
--i;
855855
} while (i + 1 > self->datapos && *buf != '\n');
856856

857-
if (i + 1 > self->datapos) // reached a newline rather than the beginning
857+
if (*buf == '\n') // reached a newline rather than the beginning
858858
{
859859
++buf; // move pointer to first char after newline
860860
++i;

0 commit comments

Comments
 (0)