dataframe groupby day code example
Example 1: groupby year datetime pandas
data.groupby(data.date.dt.year)
Example 2: group by month and day pandas
max_temp = dfall.groupby([(dfall.Date.dt.month),(dfall.Date.dt.day)])['Data_Value'].max()
data.groupby(data.date.dt.year)
max_temp = dfall.groupby([(dfall.Date.dt.month),(dfall.Date.dt.day)])['Data_Value'].max()