From 1f061de7f7e7f09c1d1b5bee47cb6170f5d2d5be Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 16 May 2019 10:49:54 +0200 Subject: [PATCH] DOC: remove usage of lrange in docs --- doc/source/whatsnew/v0.11.0.rst | 7 +------ doc/source/whatsnew/v0.12.0.rst | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst index 26b97268038e9..c919698d15689 100644 --- a/doc/source/whatsnew/v0.11.0.rst +++ b/doc/source/whatsnew/v0.11.0.rst @@ -238,14 +238,9 @@ Enhancements - support ``read_hdf/to_hdf`` API similar to ``read_csv/to_csv`` - .. ipython:: python - :suppress: - - from pandas.compat import lrange - .. ipython:: python - df = pd.DataFrame({'A': lrange(5), 'B': lrange(5)}) + df = pd.DataFrame({'A': range(5), 'B': range(5)}) df.to_hdf('store.h5', 'table', append=True) pd.read_hdf('store.h5', 'table', where=['index > 2']) diff --git a/doc/source/whatsnew/v0.12.0.rst b/doc/source/whatsnew/v0.12.0.rst index e99e5147d73b5..ff549f10a97c3 100644 --- a/doc/source/whatsnew/v0.12.0.rst +++ b/doc/source/whatsnew/v0.12.0.rst @@ -83,13 +83,8 @@ API changes ``iloc`` API to be *purely* positional based. .. ipython:: python - :suppress: - from pandas.compat import lrange - - .. ipython:: python - - df = pd.DataFrame(lrange(5), list('ABCDE'), columns=['a']) + df = pd.DataFrame(range(5), index=list('ABCDE'), columns=['a']) mask = (df.a % 2 == 0) mask