Last answered:

16 Dec 2021

Posted on:

22 Nov 2021

1

AN error is occuring when we try to do wb.DataReader('PG' , data_source='yahoo', start='1995-1-1')

 Unable to read URL: https://finance.yahoo.com/quote/PG/history?period1=788932800&period2=1637639999&interval=1d&frequency=1d&filter=history

this is the error which is being displayed .. kindly show us how to rectify it

1 answers ( 0 marked as helpful)
Posted on:

16 Dec 2021

0

Hi Shivam!
Thanks for reaching out!

We discovered that the problem can be fixed by upgrading pandas. Therefore, please open Anaconda Prompt or Terminal and execute:
pip install --upgrade pandas
pip install --upgrade pandas-datareader
Hope this helps.
Best,
Tsvetelin

Submit an answer