aswinkarthik / csvdiff

A fast diff tool for comparing csv files
https://aswinkarthik.github.io/csvdiff/
MIT License
532 stars 57 forks source link

[ENH] Add lax mode that ignores rows with wrong number of fields instead of panicking #58

Open corneliusroemer opened 1 year ago

corneliusroemer commented 1 year ago

It would be nice if there was a lax/tolerant mode that didn't panic when there's a line with wrong number of fields.

Use case: partial output where the last line is incomplete currently panics. In tolerant mode, it could simply ignore that last line and still produce useful output without requiring manual cleaning.