I am getting the below mentioned error while importing "pandas.io.data" "The pandas.io.data module is moved to a separate package " ImportError: The pandas.io.data module is moved to a separate package (pandas-datareader). After installing the pandas-datareader package (https://github.com/pandas-dev/pandas-datareader), you can change the import ``from pandas.io import data, wb`` to ``from pandas_datareader import data, wb``"
Could you please help me solve this.
You must be logged in to post. Please login or register an account.
The error tells you what to do.
"ImportError: The pandas.io.data module is moved to a separate package (pandas-datareader). " - they've deprecated pandas.io.data, and now it's called pandas-datareader, and is a separate package, so you need to install it.
Open cmd.exe/terminal, and do: pip install pandas-datareader.
Next, it says you can now change your import to: from pandas_datareader import data, wb
and you should be all set.
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.
Well, you just need 2 things First uninstall the lib -
pip uninstall pandas-datareader
And then need to install it using **pip3** (Please notice it is pip3)
pip3 install pandas-datareader
And then use -
from pandas_datareader import data, wb #..............
#................ data.DataReader()
-munirul.hoque 6 years ago
Last edited 6 years ago
You must be logged in to post. Please login or register an account.