I have a numpy array:
[2016-10-20 00:00:00, 6, 17],
[2016-10-20 00:00:00, 0, 21],
[2017-09-11 00:00:00, 7, 22],
[2017-09-11 00:00:00, 5, 30],
[2017-09-11 00:00:00, 2, 40]
Is there an easy way to merge the the rows with the same dates and sum up the values belonging to the same date?
For the example above, It should look like this:
[2016-10-20 00:00:00, 6, 38],
[2017-09-11 00:00:00, 14, 92]