I have a Pandas Dataframe with 5 minute data over the course of days. A sample of the data looks like
timestamp,name,value
2020-04-30 00:00:00,a,21.1018
2020-04-30 00:05:00,a,-3.7804
2020-04-30 00:10:00,a,2.6110
2020-04-30 00:15:00,a,-20.0046
2020-04-30 00:20:00,a,-21.7144
2020-04-30 00:25:00,a,22.2500
2020-04-30 00:30:00,a,16.9082
2020-04-30 00:35:00,a,14.8040
2020-04-30 00:40:00,a,7.3906
2020-04-30 00:45:00,a,97.7612
2020-04-30 00:50:00,a,6.0274
2020-04-30 00:55:00,a,24.4248
2020-04-30 01:00:00,a,173.8800
2020-04-30 01:05:00,a,155.7417
What I would like to be able to do is take the data from 00:05 to 01:00 and get the mean of it and do the same for all such intervals in the day, essentially yyyy-mm-dd hh:05 to yyyy-mm-dd (hh + 1):00. I can not assume that the dataframe's data will start or end at a specific time point, but can guarantee 5 minute intervals. This does not have to be done with Pandas if there is another way.
The expected output for the data given would be 26.71, so selecting the time interval between 00:05 to 01:00 and taking the mean of the values. I would then repeat this for the entire day.