Skip to content

Commit bf09391

Browse files
authored
Multiindex drop doc improvement (#43813)
1 parent 1d530e4 commit bf09391

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4972,6 +4972,10 @@ def drop(
49724972
weight 1.0 0.8
49734973
length 0.3 0.2
49744974
4975+
Drop a specific index combination from the MultiIndex
4976+
DataFrame, i.e., drop the combination ``'falcon'`` and
4977+
``'weight'``, which deletes only the corresponding row
4978+
49754979
>>> df.drop(index=('falcon', 'weight'))
49764980
big small
49774981
lama speed 45.0 30.0

0 commit comments

Comments
 (0)