Pandas, Pandas Grouper, Pandas Date, Pandas Dt, Pandas Resample.
group the data by monthly intervals: import matplotlib.pyplot as plt import seaborn as sns # Group the data by month using pd.Grouper and calculate monthly average grouped = df.groupby(pd.Grouper(key='date', freq='M')).mean() print("Grouping is done on monthly basis using pandas.Grouper and groupby