image_output_1.png
from statsmodels.tsa.seasonal import seasonal_decompose

import matplotlib.pyplot as plt

import pandas as pd

data = pd.read_csv('../input/time-series-datasets/monthly-beer-production-in-austr.csv', index_col='Month', parse_dates=True)
data.columns = ['Production']

decomposed = seasonal_decompose(data['Production'])
fig = decomposed.plot()
fig.set_size_inches((25, 9))
fig.show()