-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors #12
Comments
What's the version of |
Ciao,
thanks a lot for your reply. The version is: 0.14.2
Luigi
Il giorno dom 7 lug 2024 alle ore 21:22 Shashank ***@***.***>
ha scritto:
… What's the version of statsmodels package are you using?
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOIAEQFKUZUCU73NIFSZ5LZLGINTAVCNFSM6AAAAABKH2TKJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGU2DIMZYGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I checked the docs for 0.14.2 and the keyword freq is changed to period. |
Thanks a lot for your feedback. Now this section of the code is working. However, I get this error: --------------------------------------------------------------------------- File c:\Users\Luigi Boccia\AppData\Local\Programs\Python\Python312\Lib\site-packages\statsmodels\tsa\arima_model.py:45, in ARIMA.init(self, *args, **kwargs) File c:\Users\Luigi Boccia\AppData\Local\Programs\Python\Python312\Lib\site-packages\statsmodels\tsa\arima_model.py:29, in ARMA.init(self, *args, **kwargs) NotImplementedError: statsmodels.tsa.arima.model.ARIMA makes use of the statespace framework and |
I've solved it using this code: import pandas as pd print(model_fit.summary()) |
I'm trying to use the code.
This section: from statsmodels.tsa.seasonal import seasonal_decompose
decomposition = seasonal_decompose(df_sample['SP500'], model='additive', freq=30)
plt.rcParams["figure.figsize"] = [13, 7]
fig = decomposition.plot()
Gives these errors:
TypeError Traceback (most recent call last)
Cell In[53], line 3
1 from statsmodels.tsa.seasonal import seasonal_decompose
----> 3 decomposition = seasonal_decompose(df_sample['SP500'], model='additive', freq=30)
4 plt.rcParams["figure.figsize"] = [13, 7]
5 fig = decomposition.plot()
TypeError: seasonal_decompose() got an unexpected keyword argument 'freq'
The text was updated successfully, but these errors were encountered: