From 14a6ae43cc06c4ae63355315126313c74d33ebdc Mon Sep 17 00:00:00 2001 From: ga83weh Date: Thu, 30 Sep 2021 08:36:27 +0200 Subject: [PATCH 1/4] DOC: Improve documentation for multiindex drop --- pandas/core/frame.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..65c461a174ee8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4911,6 +4911,10 @@ def drop( weight 1.0 0.8 length 0.3 0.2 + Drop a specific combination from the DataFrame, i.e., + ``'falcon`` and ``'weight'``, which then deletes + the corresponding row. + >>> df.drop(index=('falcon', 'weight')) big small lama speed 45.0 30.0 From 29bd22e33ff94bc05684fc1a00cd387237d67b4c Mon Sep 17 00:00:00 2001 From: ga83weh Date: Thu, 30 Sep 2021 08:39:56 +0200 Subject: [PATCH 2/4] Revert "DOC: Improve documentation for multiindex drop" This reverts commit 14a6ae43cc06c4ae63355315126313c74d33ebdc. --- pandas/core/frame.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 65c461a174ee8..bfdfeabbd389c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4911,10 +4911,6 @@ def drop( weight 1.0 0.8 length 0.3 0.2 - Drop a specific combination from the DataFrame, i.e., - ``'falcon`` and ``'weight'``, which then deletes - the corresponding row. - >>> df.drop(index=('falcon', 'weight')) big small lama speed 45.0 30.0 From 6bc1f753691b071a08c270bf628fac590181a353 Mon Sep 17 00:00:00 2001 From: ga83weh Date: Thu, 30 Sep 2021 08:43:47 +0200 Subject: [PATCH 3/4] DOC: Improve documentation for multiindex drop GH43793 --- pandas/core/frame.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..97de4bcec64ba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4911,6 +4911,10 @@ def drop( weight 1.0 0.8 length 0.3 0.2 + Drop a specific index combination from the MultiIndex + DataFrame, i.e., drop the combination ``'falcon'`` and + ``'weight'``, which deletes only the corrsponding row + >>> df.drop(index=('falcon', 'weight')) big small lama speed 45.0 30.0 From c2a7bd701d380faaedf0d88c8d8865df42199aef Mon Sep 17 00:00:00 2001 From: ga83weh Date: Thu, 30 Sep 2021 09:45:50 +0200 Subject: [PATCH 4/4] DOC: Fix Spelling --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 97de4bcec64ba..586ba3d39c605 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4913,7 +4913,7 @@ def drop( Drop a specific index combination from the MultiIndex DataFrame, i.e., drop the combination ``'falcon'`` and - ``'weight'``, which deletes only the corrsponding row + ``'weight'``, which deletes only the corresponding row >>> df.drop(index=('falcon', 'weight')) big small