FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future versio

I have been using pandas for data analysis, but I have been using the old version, or 0.20. Today, I did a stationary analysis and a warning message appeared.


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


It appears to be an upgrade. tensorflow is 2.0, I still use 1.5. then

pip install --upgrade pandas

Upgraded to 0.24

After the upgrade, I ran the stability analysis code and found that an error suddenly occurred, and the prompts are as follows


ModuleNotFoundError: No module named 'pandas.tseries.tools'


What's going on? Baidu searched many times, but couldn't find a corresponding answer. Almost deleted and reinstalled.

Finally pip install --upgrade statsmodels solved

Hope it can be helpful to friends who encounter the same problem.

Related Posts