I have the following dataset:

I am trying to create a graph using matplotlib that shows the average number of task by Month & Year.
I was able to complete the calculations for average and was converted the date column to show only the Month and Year. However, when I go to plot, only the year appears.
avg1 = df.groupby(pd.PeriodIndex(df['Date'], freq="M"))['Task Count'].mean().to_frame().reset_index()
avg1 = avg.rename(columns = {"Task Count":'Avg # of Task'})
Plotting:
avg.plot(x="Date", y="Avg # of Tasks",figsize=(15,8))
How do I show the month and year in the graph?

