I have a .csv file that looks like:
The Start Date, The User Id, The User Name,
date, id, name,
12-12-12, 12345, John Doe
01-02-13, 67891, Jane Doe
The first row are descriptions for the keys on the second row. I'm loading in the .csv file as follows:
d3.csv("data.csv", function(error, data) {
data.forEach(function(d) {
d.date = parseDate(d.date);
d.id = formateID(d.id);
d.name = formatename(d.name);
d.close = +d.close;
});
I want to keep the first row (description) separate from my data model because I still plan on using it down the road, however I'm not allowed to modify the format of the .csv file. Is there a way I can only capture this information:
date, id, name,
12-12-12, 12345, John Doe
01-02-13, 67891, Jane Doe
from the csv?