MCPcopy
hub / github.com/pandas-dev/pandas / drop_duplicates

Method drop_duplicates

pandas/core/base.py:1621–1624  ·  view source on GitHub ↗
(self, *, keep: DropKeep = "first")

Source from the content-addressed store, hash-verified

1619 )
1620
1621 def drop_duplicates(self, *, keep: DropKeep = "first") -> Self:
1622 duplicated = self._duplicated(keep=keep)
1623 # error: Value of type "IndexOpsMixin" is not indexable
1624 return self[~duplicated] # type: ignore[index]
1625
1626 @final
1627 def _duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]:

Callers

nothing calls this directly

Calls 1

_duplicatedMethod · 0.95

Tested by

no test coverage detected