no module named pandas.io.data found
import pandas.io.data as wb
df=wb.Datareader('AAPL','google','2022/01/01','2022/01/01')
df.head()
I am running this code on jupyter notebook but I am getting this module not found error
Note: The pandas.io.data
module is moved to a separate package (pandas-datareader)
So, Install
pip install pandas-datareader
use
import pandas_datareader
Ultimately, this can work
from pandas_datareader import data
df=data.DataReader('AAPL','yahoo','2016/1/1','2017/1/1')
df.head()