Skip to content

Commit

Permalink
DOC: fix py3 compat (change lost in FAQ-gotchas merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Feb 11, 2017
1 parent 3f7d2db commit 2100a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ normal Python ``list``. Monotonicity of an index can be tested with the ``is_mon
.. ipython:: python
df = pd.DataFrame(index=[2,3,3,4,5], columns=['data'], data=range(5))
df = pd.DataFrame(index=[2,3,3,4,5], columns=['data'], data=list(range(5)))
df.index.is_monotonic_increasing
# no rows 0 or 1, but still returns rows 2, 3 (both of them), and 4:
Expand All @@ -894,7 +894,7 @@ On the other hand, if the index is not monotonic, then both slice bounds must be
.. ipython:: python
df = pd.DataFrame(index=[2,3,1,4,3,5], columns=['data'], data=range(6))
df = pd.DataFrame(index=[2,3,1,4,3,5], columns=['data'], data=list(range(6)))
df.index.is_monotonic_increasing
# OK because 2 and 4 are in the index
Expand Down

0 comments on commit 2100a3a

Please sign in to comment.