Trait polars_core::chunked_array::ops::ChunkAgg [−][src]
pub trait ChunkAgg<T> { fn sum(&self) -> Option<T> { ... } fn min(&self) -> Option<T> { ... } fn max(&self) -> Option<T> { ... } fn mean(&self) -> Option<f64> { ... } fn median(&self) -> Option<f64> { ... } fn quantile(&self, _quantile: f64) -> Result<Option<T>> { ... } }
Expand description
Aggregation operations
Provided methods
fn sum(&self) -> Option<T>
[src]
fn sum(&self) -> Option<T>
[src]Aggregate the sum of the ChunkedArray.
Returns None
if the array is empty or only contains null values.
fn min(&self) -> Option<T>
[src]
fn max(&self) -> Option<T>
[src]
fn max(&self) -> Option<T>
[src]Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values.
fn mean(&self) -> Option<f64>
[src]
fn mean(&self) -> Option<f64>
[src]Returns the mean value in the array.
Returns None
if the array is empty or only contains null values.
Implementors
impl ChunkAgg<u32> for BooleanChunked
[src]
impl ChunkAgg<u32> for BooleanChunked
[src]Booleans are casted to 1 or 0.
impl ChunkAgg<Series> for ListChunked
[src]
impl ChunkAgg<String> for Utf8Chunked
[src]
impl<T> ChunkAgg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: PartialOrd + Num + NumCast + Zero,
[src]
impl<T> ChunkAgg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: PartialOrd + Num + NumCast + Zero,
[src]