The following code doesn’t work.
from pandas_datareader import data
Without any reason, the code above will give you an error message:
ModuleNotFoundError: No module named ‘pandas_datareader’
After seeking a solution from Google search, I find that most of someones suggest uninstalling pandas_datareader, and then, reinstalling again. However, those are not working to solve this problem.
Lets go to the “pandas-datareader” official website to have a look. The correct import method is
import pandas_datareader.data as pdr
Then, it works. There is no such issue as “ModuleNotFoundError”.