I want to resample a TimeSeries in daily (exactly 24 hours) frequence starting at a certain hour.
Like:
index = date_range(datetime(2012,1,1,17), fre
2020 Update: for dataframes
Use the base keyword as referred in the doc:
base
Code example:
df.resample(pd.Timedelta('24 hours'), # or '24H' base=17 # <-- ADD THIS ).sum()