I have 2 dataframes, one have a step of 30 minutes, the other one have a step of 1 hour.
I want to compare the 2 dataframe, and the first (freq 30 min) is in kiloWatt by hour, but on 2 line of 30 minutes.
Like this :
2021-05-01 03:00:00, 0.701
2021-05-01 03:30:00, 1.556
2021-05-01 04:00:00, 0.799
2021-05-01 04:30:00, 0.738
But in real life, this should have the form :
2021-05-01 03:00:00, 2.347
2021-05-01 04:00:00, 1.537
Line 1 and 2 are summed and line 3 and 4 are summed and there is only one measure by hour to have effectively kilowatt by hour.
How to sum each 2 line in the dataframe ?