read_csv(engine='c') can insert spurious rows full of NaNs · Issue #10022 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
I have a well-formed CSV file with about 70k lines that parses out to a DataFrame with about 170k rows, where the extra rows are just full of NaNs. It only happens with the 'c' engine.
This is with git master.
I won't bother to upload the CSV file in question because I think I've tracked down the problem. It seems that tokenize_delimited()
runs on chunks of data at a time. This problem occurs when a chunk happens to start with '\n'
. I'll send a pull request.