I have a dataframe with start and end timestamps, duration in HH:MM:SS and energy consumed. A sample is shown below:
start end time energy0 2024-03-30 22:01:25 2024-03-31 12:29:07 00:18:21 2.181 2024-03-30 19:56:42 2024-03-30 22:00:23 02:03:36 14.792 2024-03-30 19:49:00 2024-03-30 19:56:40 00:07:37 0.89
I want to convert this data into an timeseries that shows my energy consumption on an hourly basis over time. An example of the desired outcome is shown below:
time energy0 2024-03-31 00:00:00 0.01 2024-03-30 23:00:00 0.02 2024-03-30 22:00:00 2.233 2024-03-30 21:00:00 7.184 2024-03-30 20:00:00 7.185 2024-03-30 19:00:00 1.28
I'm new to pandas so the path to a solution is not at all obvious to me.