(self, *, keep: DropKeep = "first")
| 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_]: |
nothing calls this directly
no test coverage detected