(
self, name: str, *, skipna: bool = True, keepdims: bool = False, **kwargs
)
| 2311 | # Reductions |
| 2312 | |
| 2313 | def _reduce( |
| 2314 | self, name: str, *, skipna: bool = True, keepdims: bool = False, **kwargs |
| 2315 | ): |
| 2316 | result = super()._reduce(name, skipna=skipna, keepdims=keepdims, **kwargs) |
| 2317 | if keepdims and isinstance(result, np.ndarray): |
| 2318 | if name == "std": |
| 2319 | from pandas.core.arrays import TimedeltaArray |
| 2320 | |
| 2321 | return TimedeltaArray._from_sequence(result) |
| 2322 | else: |
| 2323 | return self._from_sequence(result, dtype=self.dtype) |
| 2324 | return result |
| 2325 | |
| 2326 | def std( |
| 2327 | self, |
nothing calls this directly
no test coverage detected