Skip to content

Commit a336a8e

Browse files
committed
Remove google
1 parent b9f809f commit a336a8e

File tree

13 files changed

+17
-582
lines changed

13 files changed

+17
-582
lines changed

.coveragerc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ include = */pandas_datareader/*
66
omit =
77
*/_version.py
88
*/yahoo/*
9-
*/google/options.py
10-
*/google/quotes.py
11-
*/tests/google/test_options.py
129

1310

1411
[report]
@@ -25,7 +22,4 @@ include = */pandas_datareader/*
2522
omit =
2623
*/_version.py
2724
*/yahoo/*
28-
*/google/options.py
29-
*/google/quotes.py
30-
*/tests/google/test_options.py
3125
ignore_errors = True

docs/source/remote_data.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
Remote Data Access
1818
******************
1919

20-
.. warning::
21-
22-
Yahoo! Finance, Google Finance, and Morningstar have been immediately deprecated. Endpoints from these providers have been retired
2320

2421
.. _remote_data.data_reader:
2522

docs/source/whatsnew/v0.8.0.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ v0.8.0 (TBD)
55

66
Highlights include:
77

8+
9+
- Removal of Google finance and Morningstar, which were deprecated in 0.7.0.
10+
811
.. contents:: What's new in v0.8.0
912
:local:
1013
:backlinks: none
1114

15+
1216
.. _whatsnew_080.enhancements:
1317

1418
Enhancements

pandas_datareader/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
from ._version import get_versions
22
from .data import (DataReader, Options, get_components_yahoo,
33
get_dailysummary_iex, get_data_enigma, get_data_famafrench,
4-
get_data_fred, get_data_google, get_data_moex,
4+
get_data_fred, get_data_moex,
55
get_data_morningstar, get_data_quandl, get_data_stooq,
66
get_data_yahoo, get_data_yahoo_actions, get_iex_book,
77
get_iex_symbols, get_last_iex, get_markets_iex,
8-
get_nasdaq_symbols,
9-
get_quote_google, get_quote_yahoo, get_recent_iex,
8+
get_nasdaq_symbols, get_quote_yahoo, get_recent_iex,
109
get_records_iex, get_summary_iex, get_tops_iex,
1110
get_data_tiingo, get_data_alphavantage)
1211

1312
__version__ = get_versions()['version']
1413
del get_versions
1514

1615
__all__ = ['__version__', 'get_components_yahoo', 'get_data_enigma',
17-
'get_data_famafrench', 'get_data_google', 'get_data_yahoo',
18-
'get_data_yahoo_actions', 'get_quote_google', 'get_quote_yahoo',
16+
'get_data_famafrench', 'get_data_yahoo',
17+
'get_data_yahoo_actions', 'get_quote_yahoo',
1918
'get_iex_book', 'get_iex_symbols', 'get_last_iex',
2019
'get_markets_iex', 'get_recent_iex', 'get_records_iex',
2120
'get_summary_iex', 'get_tops_iex',

pandas_datareader/data.py

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
ImmediateDeprecationError
1616
from pandas_datareader.famafrench import FamaFrenchReader
1717
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
2118
from pandas_datareader.iex.daily import IEXDailyReader
2219
from pandas_datareader.iex.deep import Deep as IEXDeep
2320
from pandas_datareader.iex.tops import LastReader as IEXLasts, \
@@ -39,15 +36,14 @@
3936
from 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

5349
def 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-
6961
def 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-
9481
def 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")

pandas_datareader/google/__init__.py

Whitespace-only changes.

pandas_datareader/google/daily.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)