-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
ENH: Ignoring empty lines in files #4466
Comments
+1 This sounds like an excellent idea! Will your PR fix #4623? |
@timmie were you working on something like this? |
I have an issue with more than one blank line at the end of csv files. This tends to lead to hard to track down problems with the produced dataframes, but with no complaints from the reader. It would be good if read_csv ignored a continuous block of blank line at the end of a csv file. |
@holocronweaver any thoughts/progress on impl of this? |
closes by #7470 |
Currently pandas preserves empty lines when reading CSV files. I think the default should be to ignore empty lines, with a possible optional parameter to retain them.
Implementing this in the C and Python parsers should be an easy extension of my work on #2685 , but I wanted some feedback before I do so.
The text was updated successfully, but these errors were encountered: