Published
- 1 min read
pandas resample by hour
The solution for this is noted below
pandas resample by hour
Solution
df = df1.resample('60min', on='TIME').mean()
df = df1.groupby(df.index.hour).mean()
Try other methods by searching on the site. That is if this doesn’t work