Skip to content

Commit 0d604ac

Browse files
update description of keep parameters in examples
1 parent 9f8e438 commit 0d604ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4045,8 +4045,8 @@ def drop_duplicates(self, keep='first'):
40454045
40464046
>>> idx = pd.Index(['lama', 'cow', 'lama', 'beetle', 'lama', 'hippo'])
40474047
4048-
With the 'keep' parameter, the selection behaviour of duplicated values
4049-
can be changed. The value 'first' keeps the first occurrence for each
4048+
The `keep` parameter controls which duplicate values are removed.
4049+
The value 'first' keeps the first occurrence for each
40504050
set of duplicated entries. The default value of keep is 'first'.
40514051
40524052
>>> idx.drop_duplicates(keep='first')

0 commit comments

Comments
 (0)