polars_arrow::compute::aggregate

Function sum

Source
pub fn sum(array: &dyn Array) -> PolarsResult<Box<dyn Scalar>>
Available on crate feature compute_aggregate only.
Expand description

Returns the sum of all elements in array as a Scalar of the same physical and logical types as array.

ยงError

Errors iff the operation is not supported.