Trait polars_core::prelude::ChunkAggSeries

source ·
pub trait ChunkAggSeries {
    // Provided methods
    fn sum_reduce(&self) -> Scalar { ... }
    fn max_reduce(&self) -> Scalar { ... }
    fn min_reduce(&self) -> Scalar { ... }
    fn prod_reduce(&self) -> Scalar { ... }
}
Expand description

Aggregations that return Series of unit length. Those can be used in broadcasting operations.

Provided Methods§

source

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.

source

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.

source

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.

source

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.

Implementors§

source§

impl ChunkAggSeries for CategoricalChunked

Available on crate feature dtype-categorical only.
source§

impl ChunkAggSeries for BinaryChunked

source§

impl ChunkAggSeries for BooleanChunked

source§

impl ChunkAggSeries for StringChunked

source§

impl<T> ChunkAggSeries for ChunkedArray<T>
where T: PolarsNumericType, PrimitiveArray<T::Native>: for<'a> MinMaxKernel<Scalar<'a> = T::Native>, <T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd> + Sum<T::Native>, ChunkedArray<T>: IntoSeries,

source§

impl<T: PolarsObject> ChunkAggSeries for ObjectChunked<T>

Available on crate feature object only.