From 00c1e9e7e274e34e732ad8d1eb3e0a6a6896f775 Mon Sep 17 00:00:00 2001 From: Sebastian Roll Date: Sun, 11 Dec 2022 17:38:38 +0100 Subject: [PATCH] Remove duplicated code example This example snippet can be deleted because it reappears further down (two code snippets below). In other words, the paragraph has two examples covering the `axis` keyword arg where only on is needed. --- doc/source/user_guide/basics.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 2204c8b04e438..786192e8c3ebd 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -1213,12 +1213,6 @@ With a DataFrame, you can simultaneously reindex the index and columns: df df.reindex(index=["c", "f", "b"], columns=["three", "two", "one"]) -You may also use ``reindex`` with an ``axis`` keyword: - -.. ipython:: python - - df.reindex(["c", "f", "b"], axis="index") - Note that the ``Index`` objects containing the actual axis labels can be **shared** between objects. So if we have a Series and a DataFrame, the following can be done: