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§
Sourcefn sum_reduce(&self) -> Scalar
fn sum_reduce(&self) -> Scalar
Get the sum of the ChunkedArray as a new Series of length 1.
Sourcefn max_reduce(&self) -> Scalar
fn max_reduce(&self) -> Scalar
Get the max of the ChunkedArray as a new Series of length 1.
Sourcefn min_reduce(&self) -> Scalar
fn min_reduce(&self) -> Scalar
Get the min of the ChunkedArray as a new Series of length 1.
Sourcefn prod_reduce(&self) -> Scalar
fn prod_reduce(&self) -> Scalar
Get the product of the ChunkedArray as a new Series of length 1.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ChunkAggSeries for BinaryChunked
impl ChunkAggSeries for BooleanChunked
impl ChunkAggSeries for StringChunked
impl<T: PolarsCategoricalType> ChunkAggSeries for CategoricalChunked<T>
Available on crate feature
dtype-categorical only.impl<T: PolarsObject> ChunkAggSeries for ObjectChunked<T>
Available on crate feature
object only.