Trait polars_core::prelude::ChunkAggSeries
source · pub trait ChunkAggSeries {
fn sum_as_series(&self) -> Series { ... }
fn max_as_series(&self) -> Series { ... }
fn min_as_series(&self) -> Series { ... }
fn prod_as_series(&self) -> Series { ... }
}
Expand description
Aggregations that return Series of unit length. Those can be used in broadcasting operations.
Provided Methods§
sourcefn sum_as_series(&self) -> Series
fn sum_as_series(&self) -> Series
Get the sum of the ChunkedArray as a new Series of length 1.
sourcefn max_as_series(&self) -> Series
fn max_as_series(&self) -> Series
Get the max of the ChunkedArray as a new Series of length 1.
sourcefn min_as_series(&self) -> Series
fn min_as_series(&self) -> Series
Get the min of the ChunkedArray as a new Series of length 1.
sourcefn prod_as_series(&self) -> Series
fn prod_as_series(&self) -> Series
Get the product of the ChunkedArray as a new Series of length 1.
Implementors§
impl ChunkAggSeries for BinaryChunked
Available on crate feature
dtype-binary
only.impl ChunkAggSeries for BooleanChunked
impl ChunkAggSeries for ListChunked
impl ChunkAggSeries for Utf8Chunked
impl<T> ChunkAggSeries for ChunkedArray<T>where
T: PolarsNumericType,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd> + Sum<T::Native> + SimdOrd<T::Native>,
ChunkedArray<T>: IntoSeries,
impl<T: PolarsObject> ChunkAggSeries for ObjectChunked<T>
Available on crate feature
object
only.