polars::prelude

Function cum_prod

Source
pub fn cum_prod(s: &Series, reverse: bool) -> Result<Series, PolarsError>
Available on crate feature polars-ops only.
Expand description

Get an array with the cumulative product computed at every element.

If the DataType is one of {Int8, UInt8, Int16, UInt16, Int32, UInt32} the Series is first cast to Int64 to prevent overflow issues.