My data frame has two columns: Timestamp (first column) and Power (second column). On each day, it collects power measurements. Number of samples per day is around 200. Like this I have a two year data. I want to find maximum on each day and I want to plot it.
My code is:
one_day_data = df.iloc[:,1].groupby(pd.Grouper(key=df.columns[0],freq='D'))
print(one_day_data.max())
Output is:
KeyError: 'The grouper name DateTime is not found'