I have a dataframe that looks like this:

I want to get the average rides per day_of_week.
I tried to make this: df.groupby('member_casual')['day_of_week'].value_counts().mean()
the output was just a number. How can I get the average rides for each weekday?