Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.IntervalIndex.drop_duplicates

IntervalIndex.drop_duplicates(keep='first')[source]

Return Index with duplicate values removed

Parameters:

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.
Returns:

deduplicated : Index

Scroll To Top