Skip to content

Commit 86b590b

Browse files
committed
DOC: Clean up docs
Large doc string clean up. Ensure all function have at least a minimal doc string. Set release date target Clarify Google finance function
1 parent fd638e6 commit 86b590b

27 files changed

+161
-33
lines changed

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ Up to date remote data access for pandas, works for multiple versions of pandas.
2525
been immediately deprecated due to large changes in their API and
2626
no stable replacement.
2727

28+
.. note::
29+
30+
As of v0.6.0 Google finance is still functioning for historical price data,
31+
although there are frequent reports of failures. Failure is frequently
32+
encountered when bulk downloading historical price data.
2833

2934
Installation
3035
------------

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
'sphinx.ext.autodoc',
4343
'sphinx.ext.intersphinx',
4444
'sphinx.ext.extlinks',
45+
'sphinx.ext.napoleon',
4546
'IPython.sphinxext.ipython_directive',
4647
'IPython.sphinxext.ipython_console_highlighting'
4748
]

docs/source/readers/iex.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
The Investors Exchange (IEX)
22
----------------------------
33

4+
.. py:module:: pandas_datareader.iex.daily
5+
6+
.. autoclass:: IEXDailyReader
7+
:members:
8+
:inherited-members:
9+
410
.. py:module:: pandas_datareader.iex.market
511
612
.. autoclass:: MarketReader

docs/source/remote_data.rst

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Currently the following sources are supported:
3939
- :ref:`Eurostat<remote_data.eurostat>`
4040
- :ref:`Thrift Savings Plan<remote_data.tsp>`
4141
- :ref:`Nasdaq Trader symbol definitions<remote_data.nasdaq_symbols>`
42-
- :ref:`IEX<remote_data.iex>`
4342
- :ref:`Stooq<remote_data.stooq>`
4443
- :ref:`MOEX<remote_data.moex>`
4544

@@ -70,7 +69,9 @@ Google Finance
7069
IEX
7170
===
7271

73-
Historical stock prices from `IEX <https://iextrading.com/developer/>`__,
72+
The Investors Exchange (IEX) provides a wide range of data through an
73+
`API <https://iextrading.com/developer/docs/>`__. Historical stock
74+
prices are available for up to 5 years:
7475

7576
.. ipython:: python
7677
@@ -81,8 +82,16 @@ Historical stock prices from `IEX <https://iextrading.com/developer/>`__,
8182
f = web.DataReader('F', 'iex', start, end)
8283
f.loc['2015-02-09']
8384
85+
There are additional interfaces to this API that are
86+
directly exposed: tops (`'iex-tops'`) and last (`'iex-lasts'`).
87+
A third interface to the deep API is exposed through
88+
`Deep` class or the `get_iex_book` function.
8489

85-
Prices are available up for the past 5 years.
90+
.. ipython:: python
91+
92+
import pandas_datareader.data as web
93+
f = web.DataReader('gs', 'iex-tops')
94+
f[:10]
8695
8796
.. _remote_data.enigma:
8897

@@ -422,20 +431,6 @@ available. More information on the `field <http://www.nasdaqtrader.com/trader.as
422431
Name: IBM, dtype: object
423432
424433
425-
.. _remote_data.iex:
426-
427-
The Investors Exchange (IEX) provides a wide range of data through an
428-
`API <https://iextrading.com/developer/docs/>`__. There are two interfaces
429-
to this API that are directly exposed: tops (`'iex-tops'`) and last
430-
(`'iex-lasts'`). A third interface to the deep API is exposed through
431-
`IEXDeep` class or the `get_iex_book` function.
432-
433-
.. ipython:: python
434-
435-
import pandas_datareader.data as web
436-
f = web.DataReader('gs', 'iex-tops')
437-
f[:10]
438-
439434
.. _remote_data.stooq:
440435
441436
Stooq Index Data

docs/source/whatsnew/v0.6.0.txt

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _whatsnew_060:
22

3-
v0.6.0 (January TODO, 2018)
3+
v0.6.0 (January 23, 2018)
44
---------------------------
55

66
This is a major release from 0.5.0. We recommend that all users upgrade.
@@ -10,16 +10,30 @@ This is a major release from 0.5.0. We recommend that all users upgrade.
1010
Yahoo!, Google Options, Google Quotes and EDGAR have been immediately
1111
deprecated.
1212

13+
.. note::
14+
15+
Google finance is still functioning for historical price data,
16+
although there are frequent reports of failures. Failure is frequently
17+
encountered when bulk downloading historical price data.
18+
1319
Highlights include:
1420

15-
- A new data connector for stock index data provided by Stooq was
16-
introduced. (:issue:`447`)
21+
- Immediate deprecation of Yahoo!, Google Options and Quotes and EDGAR. The
22+
end points behind these APIs have radically changed and the existing readers
23+
require complete rewrites. In the case of most Yahoo! data the endpoints
24+
have been removed. PDR would like to restore these features, and pull
25+
requests are welcome.
1726

18-
- A new data connector for data provided by the Bank of Canada was
19-
introduced. (:issue:`440`)
27+
- A new connector for IEX daily price data was introduced (:issue:`465`).
28+
29+
- A new connector for IEX the majority of the IEX API was introduced
30+
(:issue:`446`).
2031

21-
- Immediate deprecation of Yahoo!, Google Options and Quotes and EDGAR.
32+
- A new data connector for stock index data provided by Stooq was
33+
introduced (:issue:`447`).
2234

35+
- A new data connector for data provided by the Bank of Canada was
36+
introduced (:issue:`440`).
2337

2438
.. contents:: What's new in v0.6.0
2539
:local:

pandas_datareader/bankofcanada.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ class BankOfCanadaReader(_BaseReader):
1212

1313
@property
1414
def url(self):
15+
"""API URL"""
1516
if not isinstance(self.symbols, compat.string_types):
1617
raise ValueError('data name must be string')
1718

1819
return '{0}/{1}/csv'.format(self._URL, self.symbols)
1920

2021
@property
2122
def params(self):
23+
"""Parameters to use in API calls"""
2224
return {'start_date': self.start.strftime('%Y-%m-%d'),
2325
'end_date': self.end.strftime('%Y-%m-%d')}
2426

pandas_datareader/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ def close(self):
6262

6363
@property
6464
def url(self):
65+
"""API URL"""
6566
# must be overridden in subclass
6667
raise NotImplementedError
6768

6869
@property
6970
def params(self):
71+
"""Parameters to use in API calls"""
7072
return None
7173

7274
def read(self):

pandas_datareader/enigma.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self,
6363
self._retry_delay = pause
6464

6565
def read(self):
66+
"""Read data"""
6667
try:
6768
return self._read()
6869
finally:

pandas_datareader/eurostat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class EurostatReader(_BaseReader):
1414

1515
@property
1616
def url(self):
17+
"""API URL"""
1718
if not isinstance(self.symbols, compat.string_types):
1819
raise ValueError('data name must be string')
1920

@@ -23,6 +24,7 @@ def url(self):
2324

2425
@property
2526
def dsd_url(self):
27+
"""API DSD URL"""
2628
if not isinstance(self.symbols, compat.string_types):
2729
raise ValueError('data name must be string')
2830

pandas_datareader/famafrench.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class FamaFrenchReader(_BaseReader):
4848

4949
@property
5050
def url(self):
51+
"""API URL"""
5152
return ''.join([_URL, _URL_PREFIX, self.symbols, _URL_SUFFIX])
5253

5354
def _read_zipfile(self, url):

0 commit comments

Comments
 (0)