Skip to content

Commit 7c2fe04

Browse files
committed
DOC: remove redundant swaplevel section per #533
1 parent 4c65337 commit 7c2fe04

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

doc/source/indexing.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -702,16 +702,6 @@ not check (or care) whether the levels themselves are sorted. Fortunately, the
702702
constructors ``from_tuples`` and ``from_arrays`` ensure that this is true, but
703703
if you compute the levels and labels yourself, please be careful.
704704

705-
Swapping levels
706-
~~~~~~~~~~~~~~~
707-
708-
To do this, use the ``swaplevel`` function:
709-
710-
.. ipython:: python
711-
712-
df
713-
df.swaplevel(0, 1)
714-
715705
Adding an index to an existing DataFrame
716706
----------------------------------------
717707

0 commit comments

Comments
 (0)