Closed matteogabba closed 1 year ago
Your scipy is too new. You need to downgrade it to something earlier.
ImportError: cannot import name '_centered' from 'scipy.signal.signaltools' (C:\Users\voodo\anaconda3\envs\oop_test\lib\site-packages\scipy\signal\signaltools.py)
You might also need to downgrade your pandas.
Can you please suggest which versions should I use?
1.7.x seems to be the latest that has that attribute.
You don't have the statsmodels you think you have. This is not an issue in 0.13.5. You should upgrade to 0.13.5 which works with both of these (pandas and scipy).
OK. If I run conda list it indicates the latest version. What is the reason of it? I will anyway try to reinstall a fresh virtenv. I will keep you updated. Thanks!
Hard to say, but there is a try, except ImportError in the 0.13.x branch, and we test against these versions of pandas and scipy.
When I run the following function
ar_select_order(seg, ic='aic', maxlag=maxlag)
I got this error message:
AttributeError: 'pandas._libs.properties.CachedProperty' object has no attribute 'func'
I never had this error before.
I run statsmodels version 0.13.5, pandas 1.4.4, scipy 1.9.3, on python 3.10.8 - Windows 11.
It seems to be related to this issue: https://github.com/pandas-dev/pandas/issues/46474
Example code to reproduce the issue:
Running
import statsmodels.api as sm; sm.show_versions()
raise the following error message: