I have some data taken every minute and I want to resample it in 5 minute segments.
df.resample("5T").mean()
This has the effect of resampling to every fifth minute of the hour. i.e 12:00,12:05,12:10,12:15 etc.
What if my last data point was 12:07
Is there a way to resample it in 5 minute blocks to the result would be (also backwards so the last newest time 100% contains data from 5 minutes)
12:07, 12:02, 11:07 etc