15
15
ImmediateDeprecationError
16
16
from pandas_datareader .famafrench import FamaFrenchReader
17
17
from 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
21
18
from pandas_datareader .iex .daily import IEXDailyReader
22
19
from pandas_datareader .iex .deep import Deep as IEXDeep
23
20
from pandas_datareader .iex .tops import LastReader as IEXLasts , \
39
36
from pandas_datareader .yahoo .quotes import YahooQuotesReader
40
37
41
38
__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' ,
43
40
'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' ,
45
42
'get_tops_iex' , 'get_summary_iex' , 'get_records_iex' ,
46
43
'get_recent_iex' , 'get_markets_iex' , 'get_last_iex' ,
47
44
'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' ]
51
47
52
48
53
49
def get_data_alphavantage (* args , ** kwargs ):
@@ -62,10 +58,6 @@ def get_data_famafrench(*args, **kwargs):
62
58
return FamaFrenchReader (* args , ** kwargs ).read ()
63
59
64
60
65
- def get_data_google (* args , ** kwargs ):
66
- return GoogleDailyReader (* args , ** kwargs ).read ()
67
-
68
-
69
61
def get_data_yahoo (* args , ** kwargs ):
70
62
return YahooDailyReader (* args , ** kwargs ).read ()
71
63
@@ -86,11 +78,6 @@ def get_quote_yahoo(*args, **kwargs):
86
78
return YahooQuotesReader (* args , ** kwargs ).read ()
87
79
88
80
89
- def get_quote_google (* args , ** kwargs ):
90
- raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Google Quotes' ))
91
- return GoogleQuotesReader (* args , ** kwargs ).read ()
92
-
93
-
94
81
def get_data_quandl (* args , ** kwargs ):
95
82
return QuandlReader (* args , ** kwargs ).read ()
96
83
@@ -264,10 +251,10 @@ def DataReader(name, data_source=None, start=None, end=None,
264
251
Parameters
265
252
----------
266
253
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
268
255
accept a list of names.
269
256
data_source: {str, None}
270
- the data source ("google ", "fred", "ff")
257
+ the data source ("iex ", "fred", "ff")
271
258
start : {datetime, None}
272
259
left boundary for range (defaults to 1/1/2010)
273
260
end : {datetime, None}
@@ -285,7 +272,7 @@ def DataReader(name, data_source=None, start=None, end=None,
285
272
Examples
286
273
----------
287
274
# Data from Google Finance
288
- aapl = DataReader("AAPL", "google ")
275
+ aapl = DataReader("AAPL", "iex ")
289
276
290
277
# Price and volume data from IEX
291
278
tops = DataReader(["GS", "AAPL"], "iex-tops")
@@ -303,7 +290,7 @@ def DataReader(name, data_source=None, start=None, end=None,
303
290
ff = DataReader("6_Portfolios_2x3", "famafrench")
304
291
ff = DataReader("F-F_ST_Reversal_Factor", "famafrench")
305
292
"""
306
- expected_source = ["yahoo" , "google" , " iex" , "iex-tops" , "iex-last" ,
293
+ expected_source = ["yahoo" , "iex" , "iex-tops" , "iex-last" ,
307
294
"iex-last" , "bankofcanada" , "stooq" , "iex-book" ,
308
295
"enigma" , "fred" , "famafrench" , "oecd" , "eurostat" ,
309
296
"nasdaq" , "quandl" , "moex" , "morningstar" , 'robinhood' ,
@@ -322,12 +309,6 @@ def DataReader(name, data_source=None, start=None, end=None,
322
309
retry_count = retry_count , pause = pause ,
323
310
session = session ).read ()
324
311
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
-
331
312
elif data_source == "iex" :
332
313
return IEXDailyReader (symbols = name , start = start , end = end ,
333
314
chunksize = 25 ,
@@ -479,8 +460,5 @@ def Options(symbol, data_source=None, session=None):
479
460
if data_source == "yahoo" :
480
461
raise ImmediateDeprecationError (DEP_ERROR_MSG .format ('Yahoo Options' ))
481
462
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 )
485
463
else :
486
- raise NotImplementedError ("currently only yahoo and google supported" )
464
+ raise NotImplementedError ("currently only yahoo supported" )
0 commit comments