I have a dataframe containing ~3 years of data looking something like this:
I can groupby the whole dataframe by weekdays, to get the average value for each of them, by doing
df_weekday = df.groupby(df.index.weekday).mean()
But I want to have not just the average value for each weekday, but have this for every season within my dataframe of ~3 years - meaning, average value for Mon to Sun for winter, average value for Mon to Sun for spring and so on.
How can I do this? Tnx