Skip to content

Commit 95787f7

Browse files
committed
CLN: Clean docstrings, remove EDGAR
1 parent 5d8e568 commit 95787f7

File tree

23 files changed

+25
-368
lines changed

23 files changed

+25
-368
lines changed

.coveragerc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ include = */pandas_datareader/*
66
omit =
77
*/_version.py
88
*/yahoo/*
9-
*/edgar.py
109
*/google/options.py
1110
*/google/quotes.py
1211
*/tests/google/test_options.py
13-
*/tests/test_edgar.py
12+
1413

1514
[report]
1615
# Regexes for lines to exclude from consideration
@@ -26,9 +25,7 @@ include = */pandas_datareader/*
2625
omit =
2726
*/_version.py
2827
*/yahoo/*
29-
*/edgar.py
3028
*/google/options.py
3129
*/google/quotes.py
3230
*/tests/google/test_options.py
33-
*/tests/test_edgar.py
3431
ignore_errors = True

docs/source/whatsnew/v0.7.0.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ v0.7.0 (Xxxxxxx YY, 20ZZ)
1111
Highlights include:
1212

1313
- Immediate deprecation of Google finance and Morningstar for historical price data, as these API endpoints are no longer supported by their respective providers. Alternate methods are welcome via pull requests, as PDR would like to restore these features.
14+
- Removal of EDGAR, which was deprecated in v0.6.0.
1415

1516
.. contents:: What's new in v0.7.0
1617
:local:
@@ -65,10 +66,7 @@ Bug Fixes
6566

6667
- Added support for passing the API KEY to QuandlReader either directly or by
6768
setting the environmental variable QUANDL_API_KEY (:issue:`485`).
68-
- Handle Morningstar index volume data properly (:issue:`486`).
6969
- Added support for optionally passing a custom base_url to the EnigmaReader (:issue:`499`).
70-
- Fixed Morningstar 'retry' incrementation (:issue:`513`)
71-
- Updated Google Daily Price API to functional url (:issue:`502`)
7270
- Fix Yahoo! price data (:issue:`498`)
7371
- Added back support for Yahoo! price, dividends, and splits data for stocks
7472
and currency pairs (:issue:`487`).

pandas_datareader/av/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AlphaVantage(_BaseReader):
1919
_format = 'json'
2020

2121
def __init__(self, symbols=None, start=None, end=None, retry_count=3,
22-
pause=0.001, session=None, api_key=None):
22+
pause=0.1, session=None, api_key=None):
2323
super(AlphaVantage, self).__init__(symbols=symbols, start=start,
2424
end=end, retry_count=retry_count,
2525
pause=pause, session=session)

pandas_datareader/av/forex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AVForexReader(AlphaVantage):
2727
Alpha Vantage API key . If not provided the environmental variable
2828
ALPHAVANTAGE_API_KEY is read. The API key is *required*.
2929
"""
30-
def __init__(self, symbols=None, retry_count=3, pause=0.5, session=None,
30+
def __init__(self, symbols=None, retry_count=3, pause=0.1, session=None,
3131
api_key=None):
3232

3333
super(AVForexReader, self).__init__(symbols=symbols,

pandas_datareader/av/quotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AVQuotesReader(AlphaVantage):
2222
session : Session, default None
2323
requests.sessions.Session instance to be used
2424
"""
25-
def __init__(self, symbols=None, retry_count=3, pause=0.5, session=None,
25+
def __init__(self, symbols=None, retry_count=3, pause=0.1, session=None,
2626
api_key=None):
2727
if isinstance(symbols, str):
2828
syms = [symbols]

pandas_datareader/av/time_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AVTimeSeriesReader(AlphaVantage):
3939
}
4040

4141
def __init__(self, symbols=None, function="TIME_SERIES_DAILY",
42-
start=None, end=None, retry_count=3, pause=0.35,
42+
start=None, end=None, retry_count=3, pause=0.1,
4343
session=None, chunksize=25, api_key=None):
4444
super(AVTimeSeriesReader, self).__init__(symbols=symbols, start=start,
4545
end=end,

pandas_datareader/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class _DailyBaseReader(_BaseReader):
192192
""" Base class for Google / Yahoo daily reader """
193193

194194
def __init__(self, symbols=None, start=None, end=None, retry_count=3,
195-
pause=0.001, session=None, chunksize=25):
195+
pause=0.1, session=None, chunksize=25):
196196
super(_DailyBaseReader, self).__init__(symbols=symbols,
197197
start=start, end=end,
198198
retry_count=retry_count,

pandas_datareader/data.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from pandas_datareader.av.sector import AVSectorPerformanceReader
1010
from pandas_datareader.av.time_series import AVTimeSeriesReader
1111
from pandas_datareader.bankofcanada import BankOfCanadaReader
12-
from pandas_datareader.edgar import EdgarIndexReader
1312
from pandas_datareader.enigma import EnigmaReader
1413
from pandas_datareader.eurostat import EurostatReader
1514
from pandas_datareader.exceptions import DEP_ERROR_MSG, \
@@ -255,7 +254,7 @@ def get_iex_book(*args, **kwargs):
255254

256255

257256
def DataReader(name, data_source=None, start=None, end=None,
258-
retry_count=3, pause=0.001, session=None, access_key=None):
257+
retry_count=3, pause=0.1, session=None, access_key=None):
259258
"""
260259
Imports data from a number of online sources.
261260
@@ -368,11 +367,6 @@ def DataReader(name, data_source=None, start=None, end=None,
368367
return EurostatReader(symbols=name, start=start, end=end,
369368
retry_count=retry_count, pause=pause,
370369
session=session).read()
371-
elif data_source == "edgar-index":
372-
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('EDGAR'))
373-
return EdgarIndexReader(symbols=name, start=start, end=end,
374-
retry_count=retry_count, pause=pause,
375-
session=session).read()
376370
elif data_source == 'nasdaq':
377371
if name != 'symbols':
378372
raise ValueError("Only the string 'symbols' is supported for "

pandas_datareader/edgar.py

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

pandas_datareader/google/daily.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GoogleDailyReader(_DailyBaseReader):
3232
"""
3333

3434
def __init__(self, symbols=None, start=None, end=None, retry_count=3,
35-
pause=0.001, session=None, chunksize=25):
35+
pause=0.1, session=None, chunksize=25):
3636
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google finance'))
3737
super(GoogleDailyReader, self).__init__(symbols, start, end,
3838
retry_count, pause, session,

0 commit comments

Comments
 (0)