cjhowald / ynab-csv

Tool for making your CSV files ready to import into YNAB
MIT License
2 stars 0 forks source link

Duplicate column headers #14

Open ohthehugemanatee opened 7 years ago

ohthehugemanatee commented 7 years ago

My import source has a duplicate column header: "amount" appears twice. If I select either "amount" column in the converter, it only displays the values from the second "amount" column.

I know, this is a violation of whatever spec we could imagine for CSV. Still, it happens. Perhaps in parsing we could append a _1 to the end of duplicate column titles or something.

cjhowald commented 7 years ago

Good catch. I have the same situation, but the second "amount" is the EUR value, so it is what I want. I will look at how papaparse parses it with duplicate headers and see if they can be differentiated.