polars::prelude

Trait 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 ChunkedArray<BinaryType>

Source§

impl ChunkAggSeries for ChunkedArray<BooleanType>

Source§

impl ChunkAggSeries for ChunkedArray<StringType>

Source§

impl ChunkAggSeries for CategoricalChunked

Available on crate feature dtype-categorical only.
Source§

impl<T> ChunkAggSeries for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
Source§

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