Hi I'm trying to follow the example in the course but the command web.DataReader('SPY', data_source='google') is not working.
It returns an error that it's not possible to open the source.
Hi Alejandro,
Due to large breaks in API, pandas' authors have deprecated the use of google as source. Please try the following code:
from pandas_datareader import data as pdr
import fix_yahoo_finance as yf
yf.pdr_override()
data = pdr.get_data_yahoo('SPY','2017-01-01','2018-05-23')
data.head()
Thanks,
Ashish