I want to plot the mean based on month and years.
My data have two columns (count, mean) and the date as index.
As shown here is a plot similar to my plot where x is years and y is mean
Here is my code
import matplotlib.pyplot as plt
diet = df[['mean']]
diet.plot(figsize=(20,10), linewidth=5, fontsize=20 ,marker='<')
plt.xlabel('Year', fontsize=20);
plt.xlabel('Month/Year')
plt.ylabel('mean')
Is there any way to add the count column on the all point line like this to know the count number in each month.