I have a data frame where the data looks something like this:
ds Name Up Down
2021-03-01 02:55:00 name1 14094 13384
2021-03-01 03:00:00 name1 16124 18283
2021-03-01 03:05:00 name1 20838 23124
2021-03-01 02:55:00 name2 15094 33384
2021-03-01 03:00:00 name2 16174 48283
2021-03-01 03:05:00 name2 30838 63124
So I have a column with different names, but they can have the same datetime.
What I would like to do is to merge rows with the same date into a new data frame or something like that, but where the Up/Down values are added together, i.e. the resulting data frame should be something like:
ds Name Up Down
2021-03-01 02:55:00 name1+name2 29188 46768
2021-03-01 03:00:00 name1+name2 32298 66569
2021-03-01 03:05:00 name1+name2 51676 86248
The naming convention for the Name
column I haven't really given much thought. I don't think that is that important.