Skip to content

Commit 9d064f3

Browse files
Merge pull request #7495 from dstephens99/master
DOC: Fix index error for remote data docs.
2 parents bbde837 + ecc787d commit 9d064f3

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

doc/source/remote_data.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ to the specific option you want.
6969
from pandas.io.data import Options
7070
aapl = Options('aapl', 'yahoo')
7171
data = aapl.get_all_data()
72-
data.iloc[0:5:, 0:5]
72+
data.iloc[0:5, 0:5]
7373
7474
#Show the $100 strike puts at all expiry dates:
75-
data.loc[(100, slice(None), 'put'),:].iloc[0:5:, 0:5]
75+
data.loc[(100, slice(None), 'put'),:].iloc[0:5, 0:5]
7676
7777
#Show the volume traded of $100 strike puts at all expiry dates:
78-
data.loc[(100, slice(None), 'put'),'Vol'].iloc[0:5:, 0:5]
78+
data.loc[(100, slice(None), 'put'),'Vol'].head()
7979
8080
If you don't want to download all the data, more specific requests can be made.
8181

doc/source/v0.14.1.txt

+2-10
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,15 @@ Performance
148148
Experimental
149149
~~~~~~~~~~~~
150150

151-
``pandas.io.data.Options`` has a get_all_data method and now consistently returns a multi-indexed ``DataFrame`` (PR `#5602`)
151+
``pandas.io.data.Options`` has a get_all_data method and now consistently returns a multi-indexed ``DataFrame`` (:issue:`5602`)
152152
See :ref:`the docs<remote_data.yahoo_Options>` ***Experimental***
153153

154154
.. ipython:: python
155155

156156
from pandas.io.data import Options
157157
aapl = Options('aapl', 'yahoo')
158158
data = aapl.get_all_data()
159-
data.iloc[0:5:, 0:5]
160-
161-
162-
.. ipython:: python
163-
164-
from pandas.io.data import Options
165-
aapl = Options('aapl', 'yahoo')
166-
data = aapl.get_all_data()
167-
data.iloc[0:5:, 0:5]
159+
data.iloc[0:5, 0:5]
168160

169161

170162
.. _whatsnew_0141.bug_fixes:

0 commit comments

Comments
 (0)