I have a CSV I am loading into memory via csv to array, this returns an array of objects with key value pairs for each row of data with the key being the column and the value being the data associated with that column. As such:
[{col1: 'id1', col2: '123', col3: '12/01/12'},
{col1: 'id1', col2: '100', col3: '12/01/12'},
{col1: 'id2', col2: '-100', col3: '12/01/12'},
{col1: 'id2', col2: '123', col3: '13/01/12'}]
What I want to be able to do is group data based on a specific column so for example for id1 on the data 12/01/12 what was the sum total of column col2. Or for id2 what was the difference between the value in col2 between 12/01/12 and 13/01/12.
Fairly new (1 week in) to JS so any advice on this would be much appreciated.