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

Method _duplicated

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

Source from the content-addressed store, hash-verified

1625
1626 @final
1627 def _duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]:
1628 arr = self._values
1629 if isinstance(arr, ExtensionArray):
1630 return arr.duplicated(keep=keep)
1631 return algorithms.duplicated(arr, keep=keep)
1632
1633 def _arith_method(self, other, op):
1634 res_name = ops.get_op_result_name(self, other)

Callers 3

drop_duplicatesMethod · 0.95
duplicatedMethod · 0.80
duplicatedMethod · 0.80

Calls 1

duplicatedMethod · 0.45

Tested by

no test coverage detected