d3 / d3-dsv

A parser and formatter for delimiter-separated values, such as CSV and TSV.
https://d3js.org/d3-dsv
ISC License
436 stars 76 forks source link

deduplicate column names #73

Closed Fil closed 4 years ago

Fil commented 4 years ago

closes https://github.com/d3/d3-dsv/issues/72

mbostock commented 4 years ago

I don’t like that this invents new column names when there is a collision. This definitely should not be the default behavior. I would rather throw an error (but I’m not sure that is better than letting the last column win, as Object.assign does).

I think it is better to use parseRows if the column names are not unique.

Fil commented 4 years ago

Then maybe https://github.com/d3/d3-dsv/pull/74 instead ;-)