1
votes

I am running an SARIMA code, but there is the following problem, anyone know how to solve it?

results.plot_diagnostics(figsize=(16, 8))
plt.show()


AttributeError     Traceback (most recent call last)
<ipython-input-123-6cfeaa52b7c1> in <module>
----> 1 results.plot_diagnostics(figsize=(16, 8))
      2 plt.show()

~\anaconda3\lib\site-packages\statsmodels\base\wrapper.py in __getattribute__(self, attr)
     32             pass
     33 
---> 34         obj = getattr(results, attr)
     35         data = results.model.data
     36         how = self._wrap_attrs.get(attr)

AttributeError: 'OLSResults' object has no attribute 'plot_diagnostics'