jahangirmammadov / sarima

Econometric Approach to Time Series Analysis — Seasonal ARIMA in Python
23 stars 9 forks source link

name 'decomposition' is not defined #1

Open gurupetach opened 3 years ago

gurupetach commented 3 years ago

Am trying to run the file but at cell 14 it is giving me an error.please help. The error is as below. I am using the exact code.Nothing has changed

image

name 'decomposition' is not defined

image

padhariabhavesh commented 3 years ago

You should add decomposition = plot_seasonal_decompose(training_data, 'multiplicative') on line 12 then after you can run seasonal_component = training_data /decomposition.trend