text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df = pd.read_csv('/kaggle/input/time-series-datasets/monthly-beer-production-in-austr.csv')

df.Month = pd.to_datetime(df.Month)

df = df.set_index('Month')

rolling_mean = df.rolling(window=12).mean()
rolling_std = df.rolling(window=12).std()

plt.figure(figsize=(18, 9))
plt.plot(df.index, df['Monthly beer production'], linestyle='-')
plt.xlabel = 'Dates'
plt.ylabel = 'Total Production'
plt.show()