Trait polars_core::chunked_array::ops::ChunkQuantile
source · pub trait ChunkQuantile<T> {
fn median(&self) -> Option<T> { ... }
fn quantile(
&self,
_quantile: f64,
_interpol: QuantileInterpolOptions
) -> PolarsResult<Option<T>> { ... }
}
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
) -> PolarsResult<Option<T>>
fn quantile(
&self,
_quantile: f64,
_interpol: QuantileInterpolOptions
) -> PolarsResult<Option<T>>
Aggregate a given quantile of the ChunkedArray.
Returns None
if the array is empty or only contains null values.
Implementors§
impl ChunkQuantile<bool> for BooleanChunked
impl ChunkQuantile<f32> for Float32Chunked
impl ChunkQuantile<f64> for Float64Chunked
impl ChunkQuantile<Series> for ListChunked
impl ChunkQuantile<String> for Utf8Chunked
impl<T> ChunkQuantile<f64> for ChunkedArray<T>where
T: PolarsIntegerType,
T::Native: Ord,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd> + Sum<T::Native> + SimdOrd<T::Native>,
impl<T: PolarsObject> ChunkQuantile<Series> for ObjectChunked<T>
Available on crate feature
object
only.