Home > Enterprise >  'ARIMAResults' object has no attribute 'plot_predict' error
'ARIMAResults' object has no attribute 'plot_predict' error

Time:07-26

In stats models I have this code

from statsmodels.tsa.arima.model import ARIMA

from statsmodels.graphics.tsaplots import plot_predict

df1.drop(df1.columns.difference(['PTS']), 1, inplace=True)      
model = ARIMA(df1.PTS, order=(0, 15,0))
res = model.fit()
res.plot_predict(start='2021-10-19', end='2022-04-05')
plt.show()

However when it goes to plt.show I get the ARIMA results object has no attribute plot predict. What do i do to fix this?

CodePudding user response:

The .plot_predict() method no longer exists with the enter image description here

  • Related