Trait polars::prelude::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§
sourcefn median(&self) -> Option<T>
 
fn median(&self) -> Option<T>
Returns the mean value in the array.
Returns None if the array is empty or only contains null values.
sourcefn quantile(
    &self,
    _quantile: f64,
    _interpol: QuantileInterpolOptions
) -> Result<Option<T>, PolarsError>
 
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§
impl ChunkQuantile<bool> for ChunkedArray<BooleanType>
impl ChunkQuantile<f32> for ChunkedArray<Float32Type>
impl ChunkQuantile<f64> for ChunkedArray<Float64Type>
impl ChunkQuantile<Series> for ChunkedArray<FixedSizeListType>
Available on crate feature 
dtype-array only.impl ChunkQuantile<Series> for ChunkedArray<ListType>
impl ChunkQuantile<String> for ChunkedArray<StringType>
impl<T> ChunkQuantile<f64> for ChunkedArray<T>
impl<T> ChunkQuantile<Series> for ChunkedArray<ObjectType<T>>where
    T: PolarsObject,
Available on crate feature 
object only.