From ecc787de07d5c1eff0ee1d69aaa580c2df606c32 Mon Sep 17 00:00:00 2001 From: David Stephens Date: Wed, 18 Jun 2014 07:16:47 -0700 Subject: [PATCH] DOC: Fix index error for remote data docs. DOC: Change v0.14.1.txt to use issue tracking for PR 5602 --- doc/source/remote_data.rst | 6 +++--- doc/source/v0.14.1.txt | 12 ++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst index 98d14b23e28bf..3b12023c47f1e 100644 --- a/doc/source/remote_data.rst +++ b/doc/source/remote_data.rst @@ -69,13 +69,13 @@ to the specific option you want. from pandas.io.data import Options aapl = Options('aapl', 'yahoo') data = aapl.get_all_data() - data.iloc[0:5:, 0:5] + data.iloc[0:5, 0:5] #Show the $100 strike puts at all expiry dates: - data.loc[(100, slice(None), 'put'),:].iloc[0:5:, 0:5] + data.loc[(100, slice(None), 'put'),:].iloc[0:5, 0:5] #Show the volume traded of $100 strike puts at all expiry dates: - data.loc[(100, slice(None), 'put'),'Vol'].iloc[0:5:, 0:5] + data.loc[(100, slice(None), 'put'),'Vol'].head() If you don't want to download all the data, more specific requests can be made. diff --git a/doc/source/v0.14.1.txt b/doc/source/v0.14.1.txt index 2bd92953e2db7..c1e5877d09004 100644 --- a/doc/source/v0.14.1.txt +++ b/doc/source/v0.14.1.txt @@ -148,7 +148,7 @@ Performance Experimental ~~~~~~~~~~~~ -``pandas.io.data.Options`` has a get_all_data method and now consistently returns a multi-indexed ``DataFrame`` (PR `#5602`) +``pandas.io.data.Options`` has a get_all_data method and now consistently returns a multi-indexed ``DataFrame`` (:issue:`5602`) See :ref:`the docs` ***Experimental*** .. ipython:: python @@ -156,15 +156,7 @@ Experimental from pandas.io.data import Options aapl = Options('aapl', 'yahoo') data = aapl.get_all_data() - data.iloc[0:5:, 0:5] - - - .. ipython:: python - - from pandas.io.data import Options - aapl = Options('aapl', 'yahoo') - data = aapl.get_all_data() - data.iloc[0:5:, 0:5] + data.iloc[0:5, 0:5] .. _whatsnew_0141.bug_fixes: