polars_core::prelude

Trait QuantileAggSeries

Source
pub trait QuantileAggSeries {
    // Required methods
    fn median_reduce(&self) -> Scalar;
    fn quantile_reduce(
        &self,
        _quantile: f64,
        _method: QuantileMethod,
    ) -> PolarsResult<Scalar>;
}

Required Methods§

Source

fn median_reduce(&self) -> Scalar

Get the median of the ChunkedArray as a new Series of length 1.

Source

fn quantile_reduce( &self, _quantile: f64, _method: QuantileMethod, ) -> PolarsResult<Scalar>

Get the quantile of the ChunkedArray as a new Series of length 1.

Implementors§