Trait polars::prelude::ChunkAggSeries [−][src]
pub trait ChunkAggSeries { fn sum_as_series(&self) -> Series { ... } fn max_as_series(&self) -> Series { ... } fn min_as_series(&self) -> Series { ... } fn mean_as_series(&self) -> Series { ... } fn median_as_series(&self) -> Series { ... } fn quantile_as_series(&self, _quantile: f64) -> Result<Series, PolarsError> { ... } }
Expand description
Aggregations that return Series of unit length. Those can be used in broadcasting operations.
Provided methods
fn sum_as_series(&self) -> Series
fn sum_as_series(&self) -> Series
Get the sum of the ChunkedArray as a new Series of length 1.
fn max_as_series(&self) -> Series
fn max_as_series(&self) -> Series
Get the max of the ChunkedArray as a new Series of length 1.
fn min_as_series(&self) -> Series
fn min_as_series(&self) -> Series
Get the min of the ChunkedArray as a new Series of length 1.
fn mean_as_series(&self) -> Series
fn mean_as_series(&self) -> Series
Get the mean of the ChunkedArray as a new Series of length 1.
fn median_as_series(&self) -> Series
fn median_as_series(&self) -> Series
Get the median of the ChunkedArray as a new Series of length 1.
fn quantile_as_series(&self, _quantile: f64) -> Result<Series, PolarsError>
fn quantile_as_series(&self, _quantile: f64) -> Result<Series, PolarsError>
Get the quantile of the ChunkedArray as a new Series of length 1.
Implementors
impl<T> ChunkAggSeries for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: IntoSeries,