-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More than one blank line at the end of CSV file: automate cleanup? #1572
Comments
@johnkerl If you think it's not worth pursuing, I'll close it. Thank you always |
@aborruso thanks -- let's keep this open -- it's worth pursuing |
@aborruso there are a few issues:
My thought is to have an opt-in flag but with the caveat to the user that it will "eat" legitimate empty-string final rows in the one-column case ... |
This is the problem :( The only thing I can think of is this: if the CSV has more than one blank line at the end, and we have for these end lines data length mismatch 2 (or more) != 1, keep only a blank line at the end. It may be risky, though, and it's better to bump with the error and fix it. |
Hi @johnkerl,
I sometimes run into errors like this::
This error occurs in many cases. Even when in CSV there are two blank lines at the end and not one.
I prefer to attach also a screenshot
For very large files, it's something I often miss, in the sense that I can't notice it and look for errors of other kinds.
Do you think it makes sense to introduce a more consistent error message, and/or automatically clean up the blank end lines and if there are more than one reduce them to one?
Thank you
The text was updated successfully, but these errors were encountered: