Skip to content

Commit 14a6ae4

Browse files
author
ga83weh
committed
DOC: Improve documentation for multiindex drop
1 parent 6636b36 commit 14a6ae4

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
@@ -4911,6 +4911,10 @@ def drop(
49114911
weight 1.0 0.8
49124912
length 0.3 0.2
49134913
4914+
Drop a specific combination from the DataFrame, i.e.,
4915+
``'falcon`` and ``'weight'``, which then deletes
4916+
the corresponding row.
4917+
49144918
>>> df.drop(index=('falcon', 'weight'))
49154919
big small
49164920
lama speed 45.0 30.0

0 commit comments

Comments
 (0)