cudf.Index.drop_duplicates#

Index.drop_duplicates(keep='first', nulls_are_equal=True)[source]#

Drop duplicate rows in index.

keep{“first”, “last”, False}, default “first”
  • ‘first’ : Drop duplicates except for the first occurrence.

  • ‘last’ : Drop duplicates except for the last occurrence.

  • False : Drop all duplicates.

nulls_are_equal: bool, default True

Null elements are considered equal to other null elements.