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

Method __abs__

pandas/core/arrays/timedeltas.py:768–770  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

766 )
767
768 def __abs__(self) -> TimedeltaArray:
769 # Note: freq is not preserved
770 return type(self)._simple_new(np.abs(self._ndarray), dtype=self.dtype)
771
772 # ----------------------------------------------------------------
773 # Conversion Methods - Vectorized analogues of Timedelta methods

Callers

nothing calls this directly

Calls 2

absMethod · 0.80
_simple_newMethod · 0.45

Tested by

no test coverage detected