You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think those are necessarily even valid CSV files, mixing single quotes and no quoting in a single file is just ... bogus. The spec only allows for double quotes. I'm not saying those things (and other problems such as tab/space or use of things other than commas for delimiters do happen in the wild. I just suggest you normalize your CSV data using other more robust tooling (I recommend csvkit tools) first thing after receiving it before you hand it off to other tools like this one that assume properly-formed data. All downstream tools should not be responsible for parsing all the possible broken formats that might exist in the wild.
quotechar makes single quotes the quoting character, and skipinitialspace drops the space after each comma so the quotes are recognised. Documented in 62b7069 (#71), on the Including a CSV file page. This closes when #71 is merged.
Activity
alerque commentedon Mar 15, 2022
I don't think those are necessarily even valid CSV files, mixing single quotes and no quoting in a single file is just ... bogus. The spec only allows for double quotes. I'm not saying those things (and other problems such as tab/space or use of things other than commas for delimiters do happen in the wild. I just suggest you normalize your CSV data using other more robust tooling (I recommend
csvkittools) first thing after receiving it before you hand it off to other tools like this one that assume properly-formed data. All downstream tools should not be responsible for parsing all the possible broken formats that might exist in the wild.docs: read values in single quotes with csv-kwargs
ickc commentedon Oct 6, 2026
This is already possible with
csv-kwargs, which is passed to Python'scsv.reader:quotecharmakes single quotes the quoting character, andskipinitialspacedrops the space after each comma so the quotes are recognised. Documented in 62b7069 (#71), on the Including a CSV file page. This closes when #71 is merged.