Skip to content

Commit 80d3f2f

Browse files
dtemkinbashtage
authored andcommitted
Removed Financials References
1 parent e01b9e3 commit 80d3f2f

File tree

6 files changed

+16
-772
lines changed

6 files changed

+16
-772
lines changed

docs/source/whatsnew/v0.6.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Enhancements
5050
- A new data connector for data provided by the Bank of Canada was
5151
introduced. (:issue:`440`)
5252

53+
- A new data connector for stock pricing data provided by Morningstar was introduced.
54+
5355
.. _whatsnew_060.api_breaking:
5456

5557
Backwards incompatible API changes

pandas_datareader/__init__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
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_mstar_financials_balance,
9-
get_mstar_financials_cashflows, get_mstar_financials_income,
10-
get_mstar_financials_keyratios, get_nasdaq_symbols,
8+
get_nasdaq_symbols,
119
get_quote_google, get_quote_yahoo, get_recent_iex,
1210
get_records_iex, get_summary_iex, get_tops_iex)
1311

@@ -20,9 +18,6 @@
2018
'get_iex_book', 'get_iex_symbols', 'get_last_iex',
2119
'get_markets_iex', 'get_recent_iex', 'get_records_iex',
2220
'get_summary_iex', 'get_tops_iex',
23-
'get_nasdaq_symbols', 'get_mstar_financials_keyratios',
24-
'get_nasdaq_symbols', 'get_data_quandl', 'get_data_moex',
21+
'get_nasdaq_symbols', 'get_nasdaq_symbols', 'get_data_quandl', 'get_data_moex',
2522
'get_data_fred', 'get_dailysummary_iex', 'get_data_morningstar',
26-
'get_data_stooq', 'get_mstar_financials_balance',
27-
'get_mstar_financials_cashflows', 'get_mstar_financials_income',
28-
'DataReader', 'Options']
23+
'get_data_stooq','DataReader', 'Options']

pandas_datareader/data.py

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
TopsReader as IEXTops
2222
from pandas_datareader.moex import MoexReader
2323
from pandas_datareader.mstar.daily import MorningstarDailyReader
24-
from pandas_datareader.mstar.financials import BalanceSheetReader, \
25-
CashflowStatementReader, IncomeStatementReader, KeyRatiosReader
2624
from pandas_datareader.nasdaq_trader import get_nasdaq_symbols
2725
from pandas_datareader.oecd import OECDReader
2826
from pandas_datareader.quandl import QuandlReader
@@ -42,8 +40,6 @@
4240
'get_recent_iex', 'get_markets_iex', 'get_last_iex',
4341
'get_iex_symbols', 'get_iex_book', 'get_dailysummary_iex',
4442
'get_data_morningstar', 'get_data_stooq',
45-
'get_mstar_financials_balance', 'get_mstar_financials_cashflows',
46-
'get_mstar_financials_income', 'get_mstar_financials_keyratios',
4743
'get_data_stooq', 'DataReader']
4844

4945

@@ -107,22 +103,6 @@ def get_data_morningstar(*args, **kwargs):
107103
return MorningstarDailyReader(*args, **kwargs).read()
108104

109105

110-
def get_mstar_financials_income(*args, **kwargs):
111-
return IncomeStatementReader(*args, **kwargs).read()
112-
113-
114-
def get_mstar_financials_balance(*args, **kwargs):
115-
return BalanceSheetReader(*args, **kwargs).read()
116-
117-
118-
def get_mstar_financials_cashflows(*args, **kwargs):
119-
return CashflowStatementReader(*args, **kwargs).read()
120-
121-
122-
def get_mstar_financials_keyratios(*args, **kwargs):
123-
return KeyRatiosReader(*args, **kwargs).read()
124-
125-
126106
def get_markets_iex(*args, **kwargs):
127107
"""
128108
Returns near-real time volume data across markets segregated by tape
@@ -385,6 +365,11 @@ def DataReader(name, data_source=None, start=None, end=None,
385365
return MoexReader(symbols=name, start=start, end=end,
386366
retry_count=retry_count, pause=pause,
387367
session=session).read()
368+
elif data_source == "morningstar":
369+
return MorningstarDailyReader(symbols=name, start=start, end=end,
370+
retry_count=retry_count, pause=pause,
371+
session=session, interval="d").read()
372+
388373
else:
389374
msg = "data_source=%r is not implemented" % data_source
390375
raise NotImplementedError(msg)

0 commit comments

Comments
 (0)