Open jzf2101 opened 6 years ago
There are some comment lines at the start of the file that are confusing both parsers. Remove those and it works fine, as far as I can tell.
This is a consequence of the underspecified format that is CSV. We could try to skip lines starting with some set of specified characters designated as comment signifiers, but that is likely error prone.
A lot of parsers out there have a setting for a comment line.
I agree that in the short term, you'll need to preprocess this file to get it to work. In the long term, we'll have a setting for a line comment character.
Do we just want to close?
Perhaps we just convert this to a feature request for a comment character. We'll also need an option to skip empty lines (this has an empty line before the actual fields start).
(but these changes won't fix pandas. For pandas, you'll also need to either strip out those lines, or figure out how to tell pandas about them.)
That's pandas problem I'm just thinking on our end
Changing the issue title for the two items noted above.
@jasongrout
FWIW pandas says