def plotYearMonthStatsHb(data): #pd.groupby(b,by=[b.index.month,b.index.year]) data.groupby(pd.TimeGrouper(freq='M')).mean().plot() sns.plt.show()