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

Method _reduce

pandas/core/arrays/period.py:1153–1159  ·  view source on GitHub ↗
(
        self, name: str, *, skipna: bool = True, keepdims: bool = False, **kwargs
    )

Source from the content-addressed store, hash-verified

1151 # Reductions
1152
1153 def _reduce(
1154 self, name: str, *, skipna: bool = True, keepdims: bool = False, **kwargs
1155 ):
1156 result = super()._reduce(name, skipna=skipna, keepdims=keepdims, **kwargs)
1157 if keepdims and isinstance(result, np.ndarray):
1158 return self._from_sequence(result, dtype=self.dtype)
1159 return result
1160
1161
1162def raise_on_incompatible(left, right) -> IncompatibleFrequency:

Callers 4

anyMethod · 0.45
allMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Calls 1

_from_sequenceMethod · 0.95

Tested by

no test coverage detected