Here's my data:
index Notifications Pct
2022-05-31 35336.0 36.0
2022-06-30 18365.0 38.0
2022-07-31 12851.0 31.0
2022-08-31 18650.0 19.0
2022-09-30 5665.0 NaN
The month marker is one month off. July should be lower than August, not higher. The index is from:
data.resample('m', on='Notif Date').count()
The code I am using is:
plt.plot(df['Notifications'], color='C2', lw=4 , marker='s', label='Open Notifications');
It seems to me that while the index plots according to the last date of the resample (i.e. 8/31), pyplot is using the first of the month to plot, thereby a gap of a month is created.