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

Method _accumulate

pandas/core/arrays/datetimelike.py:1387–1394  ·  view source on GitHub ↗
(self, name: str, *, skipna: bool = True, **kwargs)

Source from the content-addressed store, hash-verified

1385 return res_values
1386
1387 def _accumulate(self, name: str, *, skipna: bool = True, **kwargs) -> Self:
1388 if name not in {"cummin", "cummax"}:
1389 raise TypeError(f"Accumulation {name} not supported for {type(self)}")
1390
1391 op = getattr(datetimelike_accumulations, name)
1392 result = op(self.copy(), skipna=skipna, **kwargs)
1393
1394 return type(self)._simple_new(result, dtype=self.dtype)
1395
1396 @unpack_zerodim_and_defer("__add__")
1397 def __add__(self, other):

Callers

nothing calls this directly

Calls 3

opFunction · 0.85
copyMethod · 0.45
_simple_newMethod · 0.45

Tested by

no test coverage detected