Apr-11-2018, 10:01 PM
It's just a change of import in newer version.
So after Pandas 0.19.0,it's
Test.
So after Pandas 0.19.0,it's
from pandas_datareader import data, wb
Test.
G:\Anaconda3 λ python -m ptpython >>> import pandas as pd >>> pd.__version__ '0.22.0' # So i have newest version,then this is correct >>> from pandas_datareader import data, wb # Old import not do use,if not get message upgrade Pandas >>> from pandas.io import data, wb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "G:\Anaconda3\lib\site-packages\pandas\io\data.py", line 2, in <module> "The pandas.io.data module is moved to a separate package " ........ you can change the import ``from pandas.io import data, wb`` to ``from pandas_datareader import data, wb``.