1515 ImmediateDeprecationError
1616from pandas_datareader .famafrench import FamaFrenchReader
1717from pandas_datareader .fred import FredReader
18- from pandas_datareader .google .daily import GoogleDailyReader
19- from pandas_datareader .google .options import Options as GoogleOptions
20- from pandas_datareader .google .quotes import GoogleQuotesReader
2118from pandas_datareader .iex .daily import IEXDailyReader
2219from pandas_datareader .iex .deep import Deep as IEXDeep
2320from pandas_datareader .iex .tops import LastReader as IEXLasts , \
3936from pandas_datareader .yahoo .quotes import YahooQuotesReader
4037
4138__all__ = ['get_components_yahoo' , 'get_data_enigma' , 'get_data_famafrench' ,
42- 'get_data_fred' , 'get_data_google' , ' get_data_moex' ,
39+ 'get_data_fred' , 'get_data_moex' ,
4340 'get_data_quandl' , 'get_data_yahoo' , 'get_data_yahoo_actions' ,
44- 'get_nasdaq_symbols' , 'get_quote_google' , ' get_quote_yahoo' ,
41+ 'get_nasdaq_symbols' , 'get_quote_yahoo' ,
4542 'get_tops_iex' , 'get_summary_iex' , 'get_records_iex' ,
4643 'get_recent_iex' , 'get_markets_iex' , 'get_last_iex' ,
4744 'get_iex_symbols' , 'get_iex_book' , 'get_dailysummary_iex' ,
48- 'get_data_morningstar' , 'get_data_stooq' ,
49- 'get_data_stooq' , 'get_data_robinhood' , 'get_quotes_robinhood' ,
50- 'DataReader' ]
45+ 'get_data_morningstar' , 'get_data_stooq' ,'get_data_robinhood' ,
46+ 'get_quotes_robinhood' , 'DataReader' ]
5147
5248
5349def get_data_alphavantage (* args , ** kwargs ):
@@ -62,10 +58,6 @@ def get_data_famafrench(*args, **kwargs):
6258 return FamaFrenchReader (* args , ** kwargs ).read ()
6359
6460
65- def get_data_google (* args , ** kwargs ):
66- return GoogleDailyReader (* args , ** kwargs ).read ()
67-
68-
6961def get_data_yahoo (* args , ** kwargs ):
7062 return YahooDailyReader (* args , ** kwargs ).read ()
7163
@@ -86,11 +78,6 @@ def get_quote_yahoo(*args, **kwargs):
8678 return YahooQuotesReader (* args , ** kwargs ).read ()
8779
8880
89- def get_quote_google (* args , ** kwargs ):
90- raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Google Quotes' ))
91- return GoogleQuotesReader (* args , ** kwargs ).read ()
92-
93-
9481def get_data_quandl (* args , ** kwargs ):
9582 return QuandlReader (* args , ** kwargs ).read ()
9683
@@ -264,10 +251,10 @@ def DataReader(name, data_source=None, start=None, end=None,
264251 Parameters
265252 ----------
266253 name : str or list of strs
267- the name of the dataset. Some data sources (google , fred) will
254+ the name of the dataset. Some data sources (IEX , fred) will
268255 accept a list of names.
269256 data_source: {str, None}
270- the data source ("google ", "fred", "ff")
257+ the data source ("iex ", "fred", "ff")
271258 start : {datetime, None}
272259 left boundary for range (defaults to 1/1/2010)
273260 end : {datetime, None}
@@ -285,7 +272,7 @@ def DataReader(name, data_source=None, start=None, end=None,
285272 Examples
286273 ----------
287274 # Data from Google Finance
288- aapl = DataReader("AAPL", "google ")
275+ aapl = DataReader("AAPL", "iex ")
289276
290277 # Price and volume data from IEX
291278 tops = DataReader(["GS", "AAPL"], "iex-tops")
@@ -303,7 +290,7 @@ def DataReader(name, data_source=None, start=None, end=None,
303290 ff = DataReader("6_Portfolios_2x3", "famafrench")
304291 ff = DataReader("F-F_ST_Reversal_Factor", "famafrench")
305292 """
306- expected_source = ["yahoo" , "google" , " iex" , "iex-tops" , "iex-last" ,
293+ expected_source = ["yahoo" , "iex" , "iex-tops" , "iex-last" ,
307294 "iex-last" , "bankofcanada" , "stooq" , "iex-book" ,
308295 "enigma" , "fred" , "famafrench" , "oecd" , "eurostat" ,
309296 "nasdaq" , "quandl" , "moex" , "morningstar" , 'robinhood' ,
@@ -322,12 +309,6 @@ def DataReader(name, data_source=None, start=None, end=None,
322309 retry_count = retry_count , pause = pause ,
323310 session = session ).read ()
324311
325- elif data_source == "google" :
326- return GoogleDailyReader (symbols = name , start = start , end = end ,
327- chunksize = 25 ,
328- retry_count = retry_count , pause = pause ,
329- session = session ).read ()
330-
331312 elif data_source == "iex" :
332313 return IEXDailyReader (symbols = name , start = start , end = end ,
333314 chunksize = 25 ,
@@ -479,8 +460,5 @@ def Options(symbol, data_source=None, session=None):
479460 if data_source == "yahoo" :
480461 raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Yahoo Options' ))
481462 return YahooOptions (symbol , session = session )
482- elif data_source == "google" :
483- raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Google Options' ))
484- return GoogleOptions (symbol , session = session )
485463 else :
486- raise NotImplementedError ("currently only yahoo and google supported" )
464+ raise NotImplementedError ("currently only yahoo supported" )
0 commit comments