我用Dickey-Fuller方法做了一些统计测试。在
在我完成导入后:
from statsmodels.tsa.stattools import adfuller
我收到这个FutureWarning
:
/env/lib/python3.5/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead. from pandas.core import datetools
问题是我在pandas.tseries
中找不到adfuller()
的实现,正如在弃用警告中提到的那样。在
Statsmodels版本是statsmodels==0.8.0
有什么线索可以解决这个问题吗?在
根据this thread这是在
statsmodels==0.9
中修复的,因此如果可能,您应该升级。如果你因为任何原因不能升级there are ways to suppress warnings,那么至少你不必一直看到它们。在相关问题 更多 >
编程相关推荐