Datareader error when ran on colab

code section:

Df = web.DataReader('SPY',data_source='google')

Df = Df[['Open','High','Low','Close']]

DF = Df.dropna()



Output:

ImmediateDeprecationError                 Traceback (most recent call last)
<ipython-input-10-2ddc2c5474ef> in <module>()
----> 1 Df = web.DataReader('SPY',data_source='google')
      2 Df = Df[['Open','High','Low','Close']]
      3 DF = Df.dropna()

/usr/local/lib/python3.6/dist-packages/pandas_datareader/data.py in DataReader(name, data_source, start, end, retry_count, pause, session, access_key)
    314                                  chunksize=25,
    315                                  retry_count=retry_count, pause=pause,
--> 316                                  session=session).read()
    317 
    318     elif data_source == "iex":

/usr/local/lib/python3.6/dist-packages/pandas_datareader/google/daily.py in __init__(self, symbols, start, end, retry_count, pause, session, chunksize)
     34     def __init__(self, symbols=None, start=None, end=None, retry_count=3,
     35                  pause=0.1, session=None, chunksize=25):
---> 36         raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google finance'))
     37         super(GoogleDailyReader, self).__init__(symbols, start, end,
     38                                                 retry_count, pause, session,

ImmediateDeprecationError: 
Google finance has been immediately deprecated due to large breaks in the API without the
introduction of a stable replacement. Pull Requests to re-enable these data
connectors are welcome.

See https://github.com/pydata/pandas-datareader/issues

Looks like we need to pass in more parameters, can anyone give an examples?

Instead of Google finance, you can use Quandl to get the data.



Code:



data = quandl.get ('SPY', start_date='start_date', end_date ='end_date',  api_key=api_key)



For more details, you can use this link.