Trait polars::chunked_array::ops::ChunkQuantile

source ·
pub trait ChunkQuantile<T> {
    // Provided methods
    fn median(&self) -> Option<T> { ... }
    fn quantile(
        &self,
        _quantile: f64,
        _interpol: QuantileInterpolOptions
    ) -> Result<Option<T>, PolarsError> { ... }
}
Expand description

Quantile and median aggregation.

Provided Methods§

source

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.

source

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.

Implementors§