Return an ExtensionArray performing an accumulation operation.
The underlying data type might change.
Name of the function, supported values are: - cummin - cummax - cumsum - cumprod
If True, skip NA values.
Additional keyword arguments passed to the accumulation function. Currently, there is no supported kwarg.
Examples
>>> arr = pd.array([1, 2, 3])
>>> arr._accumulate(name='cumsum')
<IntegerArray>
[1, 3, 6]
Length: 3, dtype: Int64
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.api.extensions.ExtensionArray._accumulate.html