diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e471e7efb20ae..9982e14532400 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6624,15 +6624,17 @@ def drop_duplicates( subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by default use all of the columns. - keep : {'first', 'last', False}, default 'first' + keep : {'first', 'last', ``False``}, default 'first' Determines which duplicates (if any) to keep. - - ``first`` : Drop duplicates except for the first occurrence. - - ``last`` : Drop duplicates except for the last occurrence. - - False : Drop all duplicates. - inplace : bool, default False + + - 'first' : Drop duplicates except for the first occurrence. + - 'last' : Drop duplicates except for the last occurrence. + - ``False`` : Drop all duplicates. + + inplace : bool, default ``False`` Whether to modify the DataFrame rather than creating a new one. - ignore_index : bool, default False - If True, the resulting axis will be labeled 0, 1, …, n - 1. + ignore_index : bool, default ``False`` + If ``True``, the resulting axis will be labeled 0, 1, …, n - 1. .. versionadded:: 1.0.0