SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

Handle empty rows in CSV files #367

Closed baarkerlounger closed 7 years ago

baarkerlounger commented 7 years ago

Trying to create a dataframe from a CSV file that contains empty lines (even if they're at the end of the file) currently throws IndexError: element size differs (0 should be x). Pandas handles this gracefully by ignoring empty lines which seems the most user friendly so this PR matches that behaviour.