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)
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.
Submit an answer
Importing and Organizing Data in Python - Part III Not have file example_01 csv for learn
An error is occuring when we execute PG = wb.DataReader('PG', data_source='yahoo', start='1995-1-1')