AttributeError: 'ARIMAResults' object has no attribute 'plot_predict'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
Start by running the supplied example and inspect the ARIMA and plot_predict entry points named in the report. Determine which calling convention is supported in statsmodels 0.14.0, then make the supported usage clear in the relevant API or documentation and verify the example's behavior.
Written by the indexing model from the issue text.
Description
Describe the bug
The plot_predict() function generates the following error message
AttributeError: 'ARIMAResults' object has no attribute 'plot_predict'
Code Sample, a copy-pastable example if possible
from statsmodels.tsa.arima_model import ARIMA
model = ARIMA(df["Returns"], order=(1,1,1))
model_fit = model.fit()
print(model_fit.summary())
from statsmodels.graphics.tsaplots import plot_predict
model_fit.plot_predict() # Causes AttributeError: 'ARIMAResults' object has no attribute 'plot_predict'
plt.show()
I'm using statsmodels version 0.14.0
According the website below, plot_predict should be change as follows.
model_fit.plot_predict()
to
plot_predict(model_fit)
Please confirm if this is correct as I see no mention of this on the statsmodels website .
https://stackoverflow.com/questions/73112516/arimaresults-object-has-no-attribute-plot-predict-error
- Dominant language
- Python
- Stars
- 11.6k
- Forks
- 3.6k
- Avg merge
- 7h 37m
- Merged PRs (30d)
- 96
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statsmodels/statsmodels
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
statsmodels/statsmodels#10271 ·
-
type-bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
statsmodels/statsmodels#10269 ·
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
statsmodels/statsmodels#10266 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
statsmodels/statsmodels#9627 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
statsmodels/statsmodels#9293 · 1 comment ·
All issues in statsmodels/statsmodels
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100