Home > database >  no module named pandas.io.data found
no module named pandas.io.data found

Time:01-18

'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

CodePudding user response:

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()
  •  Tags:  
  • Related