Python Matplotlib和statsmodel引发运行时警告

Python Matplotlib和statsmodel引发运行时警告,python,python-2.7,matplotlib,statsmodels,Python,Python 2.7,Matplotlib,Statsmodels,我正在尝试使用Pandas和statsmodel在Python中运行Dickey Fuller测试,它不断向我发出运行时警告。有人知道这是什么原因吗?下面是代码和错误。先谢谢你 代码: 输出: /Library/Python/2.7/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a

我正在尝试使用Pandas和statsmodel在Python中运行Dickey Fuller测试,它不断向我发出运行时警告。有人知道这是什么原因吗?下面是代码和错误。先谢谢你

代码:

输出:

/Library/Python/2.7/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
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/transforms.py:648: RuntimeWarning: invalid value encountered in absolute
  inside = ((abs(dx0 + dx1) + abs(dy0 + dy1)) == 0)
Results of Dickey-Fuller Test:
Test Statistic                       NaN
p-value                              NaN
#Lags Used                      0.000000
Number of Observations Used    22.000000
Critical Value (5%)            -3.005426
Critical Value (1%)            -3.769733
Critical Value (10%)           -2.642501
dtype: float64

运行时警告似乎来自matplotlib,而不是pandas。谢谢,更新了我的问题。运行时警告似乎来自matplotlib,而不是pandas。谢谢,更新了我的问题。
/Library/Python/2.7/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
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/transforms.py:648: RuntimeWarning: invalid value encountered in absolute
  inside = ((abs(dx0 + dx1) + abs(dy0 + dy1)) == 0)
Results of Dickey-Fuller Test:
Test Statistic                       NaN
p-value                              NaN
#Lags Used                      0.000000
Number of Observations Used    22.000000
Critical Value (5%)            -3.005426
Critical Value (1%)            -3.769733
Critical Value (10%)           -2.642501
dtype: float64