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

Column data will be lost if the column name is the same #91

Closed jasmine-song closed 2 years ago

jasmine-song commented 2 years ago

console.log(d3.tsvParse("bar\tbar\n1\t2")) image If there is the same column name, the data in the previous column is overwritten by the following column How do I keep data with the same column name

Fil commented 2 years ago

As per the documentation:

If the column names are not unique, only the last value is returned for each name; to access all values, use dsv.parseRows instead (see example).