Skip to content

Commit fb8a41f

Browse files
authored
Merge pull request #608 from addisonlynch/cln_080
CLN: Remove Google and Morningstar
2 parents 127d63a + 91dda56 commit fb8a41f

File tree

20 files changed

+22
-970
lines changed

20 files changed

+22
-970
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/readers/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Data Readers
1313
eurostat
1414
iex
1515
moex
16-
morningstar
1716
nasdaq-trader
1817
oecd
1918
quandl

docs/source/readers/morningstar.rst

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

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
.. warning::
2522

docs/source/whatsnew.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ What's New
1818

1919
These are new features and improvements of note in each release.
2020

21+
.. include:: whatsnew/v0.8.0.txt
2122
.. include:: whatsnew/v0.7.0.txt
2223
.. include:: whatsnew/v0.6.0.txt
2324
.. include:: whatsnew/v0.5.0.txt

docs/source/whatsnew/v0.8.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Highlights include:
88
- A new connector for Econdb was introduced. Econdb provides
99
aggregated economic data from 90+ official statistical agencies
1010
(:issue:`615`)
11+
- Removal of Google finance and Morningstar, which were deprecated in 0.7.0.
1112
- Immediate deprecation of Robinhood for quotes and historical data. Robinhood
1213
ended support for these endpoints in 1/2019
1314

@@ -16,6 +17,7 @@ Highlights include:
1617
:local:
1718
:backlinks: none
1819

20+
1921
.. _whatsnew_080.enhancements:
2022

2123
Enhancements

pandas_datareader/__init__.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
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,
5-
get_data_morningstar, get_data_quandl, get_data_stooq,
6-
get_data_yahoo, get_data_yahoo_actions, get_iex_book,
7-
get_iex_symbols, get_last_iex, get_markets_iex,
8-
get_nasdaq_symbols,
9-
get_quote_google, get_quote_yahoo, get_recent_iex,
10-
get_records_iex, get_summary_iex, get_tops_iex,
11-
get_data_tiingo, get_data_alphavantage)
4+
get_data_fred, get_data_moex, get_data_quandl,
5+
get_data_stooq, get_data_yahoo, get_data_yahoo_actions,
6+
get_iex_book, get_iex_symbols, get_last_iex,
7+
get_markets_iex, get_nasdaq_symbols, get_quote_yahoo,
8+
get_recent_iex, get_records_iex, get_summary_iex,
9+
get_tops_iex, get_data_tiingo, get_data_alphavantage)
1210

1311
__version__ = get_versions()['version']
1412
del get_versions
1513

1614
__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',
15+
'get_data_famafrench', 'get_data_yahoo',
16+
'get_data_yahoo_actions', 'get_quote_yahoo',
1917
'get_iex_book', 'get_iex_symbols', 'get_last_iex',
2018
'get_markets_iex', 'get_recent_iex', 'get_records_iex',
2119
'get_summary_iex', 'get_tops_iex',
2220
'get_nasdaq_symbols', 'get_data_quandl', 'get_data_moex',
23-
'get_data_fred', 'get_dailysummary_iex', 'get_data_morningstar',
21+
'get_data_fred', 'get_dailysummary_iex',
2422
'get_data_stooq', 'DataReader', 'Options',
2523
'get_data_tiingo', 'get_data_alphavantage']

pandas_datareader/data.py

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
ImmediateDeprecationError
1717
from pandas_datareader.famafrench import FamaFrenchReader
1818
from pandas_datareader.fred import FredReader
19-
from pandas_datareader.google.daily import GoogleDailyReader
20-
from pandas_datareader.google.options import Options as GoogleOptions
21-
from pandas_datareader.google.quotes import GoogleQuotesReader
2219
from pandas_datareader.iex.daily import IEXDailyReader
2320
from pandas_datareader.iex.deep import Deep as IEXDeep
2421
from pandas_datareader.iex.tops import LastReader as IEXLasts, \
2522
TopsReader as IEXTops
2623
from pandas_datareader.moex import MoexReader
27-
from pandas_datareader.mstar.daily import MorningstarDailyReader
2824
from pandas_datareader.nasdaq_trader import get_nasdaq_symbols
2925
from pandas_datareader.oecd import OECDReader
3026
from pandas_datareader.quandl import QuandlReader
@@ -40,15 +36,14 @@
4036
from pandas_datareader.yahoo.quotes import YahooQuotesReader
4137

4238
__all__ = ['get_components_yahoo', 'get_data_enigma', 'get_data_famafrench',
43-
'get_data_fred', 'get_data_google', 'get_data_moex',
39+
'get_data_fred', 'get_data_moex',
4440
'get_data_quandl', 'get_data_yahoo', 'get_data_yahoo_actions',
45-
'get_nasdaq_symbols', 'get_quote_google', 'get_quote_yahoo',
41+
'get_nasdaq_symbols', 'get_quote_yahoo',
4642
'get_tops_iex', 'get_summary_iex', 'get_records_iex',
4743
'get_recent_iex', 'get_markets_iex', 'get_last_iex',
4844
'get_iex_symbols', 'get_iex_book', 'get_dailysummary_iex',
49-
'get_data_morningstar', 'get_data_stooq',
50-
'get_data_stooq', 'get_data_robinhood', 'get_quotes_robinhood',
51-
'DataReader']
45+
'get_data_stooq', 'get_data_robinhood',
46+
'get_quotes_robinhood', 'DataReader']
5247

5348

5449
def get_data_alphavantage(*args, **kwargs):
@@ -63,10 +58,6 @@ def get_data_famafrench(*args, **kwargs):
6358
return FamaFrenchReader(*args, **kwargs).read()
6459

6560

66-
def get_data_google(*args, **kwargs):
67-
return GoogleDailyReader(*args, **kwargs).read()
68-
69-
7061
def get_data_yahoo(*args, **kwargs):
7162
return YahooDailyReader(*args, **kwargs).read()
7263

@@ -87,11 +78,6 @@ def get_quote_yahoo(*args, **kwargs):
8778
return YahooQuotesReader(*args, **kwargs).read()
8879

8980

90-
def get_quote_google(*args, **kwargs):
91-
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google Quotes'))
92-
return GoogleQuotesReader(*args, **kwargs).read()
93-
94-
9581
def get_data_quandl(*args, **kwargs):
9682
return QuandlReader(*args, **kwargs).read()
9783

@@ -112,10 +98,6 @@ def get_last_iex(*args, **kwargs):
11298
return IEXLasts(*args, **kwargs).read()
11399

114100

115-
def get_data_morningstar(*args, **kwargs):
116-
return MorningstarDailyReader(*args, **kwargs).read()
117-
118-
119101
def get_data_robinhood(*args, **kwargs):
120102
return RobinhoodHistoricalReader(*args, **kwargs).read()
121103

@@ -265,10 +247,10 @@ def DataReader(name, data_source=None, start=None, end=None,
265247
Parameters
266248
----------
267249
name : str or list of strs
268-
the name of the dataset. Some data sources (google, fred) will
250+
the name of the dataset. Some data sources (IEX, fred) will
269251
accept a list of names.
270252
data_source: {str, None}
271-
the data source ("google", "fred", "ff")
253+
the data source ("iex", "fred", "ff")
272254
start : {datetime, None}
273255
left boundary for range (defaults to 1/1/2010)
274256
end : {datetime, None}
@@ -286,7 +268,7 @@ def DataReader(name, data_source=None, start=None, end=None,
286268
Examples
287269
----------
288270
# Data from Google Finance
289-
aapl = DataReader("AAPL", "google")
271+
aapl = DataReader("AAPL", "iex")
290272
291273
# Price and volume data from IEX
292274
tops = DataReader(["GS", "AAPL"], "iex-tops")
@@ -304,10 +286,10 @@ def DataReader(name, data_source=None, start=None, end=None,
304286
ff = DataReader("6_Portfolios_2x3", "famafrench")
305287
ff = DataReader("F-F_ST_Reversal_Factor", "famafrench")
306288
"""
307-
expected_source = ["yahoo", "google", "iex", "iex-tops", "iex-last",
289+
expected_source = ["yahoo", "iex", "iex-tops", "iex-last",
308290
"iex-last", "bankofcanada", "stooq", "iex-book",
309291
"enigma", "fred", "famafrench", "oecd", "eurostat",
310-
"nasdaq", "quandl", "moex", "morningstar", 'robinhood',
292+
"nasdaq", "quandl", "moex", 'robinhood',
311293
"tiingo", "yahoo-actions", "yahoo-dividends",
312294
"av-forex", "av-daily", "av-daily-adjusted",
313295
"av-weekly", "av-weekly-adjusted", "av-monthly",
@@ -323,12 +305,6 @@ def DataReader(name, data_source=None, start=None, end=None,
323305
retry_count=retry_count, pause=pause,
324306
session=session).read()
325307

326-
elif data_source == "google":
327-
return GoogleDailyReader(symbols=name, start=start, end=end,
328-
chunksize=25,
329-
retry_count=retry_count, pause=pause,
330-
session=session).read()
331-
332308
elif data_source == "iex":
333309
return IEXDailyReader(symbols=name, start=start, end=end,
334310
chunksize=25,
@@ -395,10 +371,6 @@ def DataReader(name, data_source=None, start=None, end=None,
395371
return MoexReader(symbols=name, start=start, end=end,
396372
retry_count=retry_count, pause=pause,
397373
session=session).read()
398-
elif data_source == "morningstar":
399-
return MorningstarDailyReader(symbols=name, start=start, end=end,
400-
retry_count=retry_count, pause=pause,
401-
session=session, interval="d").read()
402374
elif data_source == 'robinhood':
403375
return RobinhoodHistoricalReader(symbols=name, start=start, end=end,
404376
retry_count=retry_count, pause=pause,
@@ -485,8 +457,5 @@ def Options(symbol, data_source=None, session=None):
485457
if data_source == "yahoo":
486458
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Options'))
487459
return YahooOptions(symbol, session=session)
488-
elif data_source == "google":
489-
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google Options'))
490-
return GoogleOptions(symbol, session=session)
491460
else:
492-
raise NotImplementedError("currently only yahoo and google supported")
461+
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)