Python statmodels lib弃用警告

2024-10-06 11:29:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我用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

有什么线索可以解决这个问题吗?在


Tags: 方法fromcoreimportpandasmodulefullerstatsmodels