[][src]Trait polars::chunked_array::aggregate::Agg

pub trait Agg<T> {
    fn sum(&self) -> Option<T>;
fn min(&self) -> Option<T>;
fn max(&self) -> Option<T>; }

Required methods

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

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

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

Loading content...

Implementors

impl Agg<u64> for BooleanChunked[src]

Booleans are casted to 1 or 0.

fn sum(&self) -> Option<u64>[src]

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

impl<T> Agg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
    T: PolarsNumericType,
    T::Native: Add<Output = T::Native> + PartialOrd
[src]

fn sum(&self) -> Option<T::Native>[src]

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

fn min(&self) -> Option<T::Native>[src]

Returns the minimum value in the array, according to the natural order. Returns an option because the array is nullable.

fn max(&self) -> Option<T::Native>[src]

Returns the maximum value in the array, according to the natural order. Returns an option because the array is nullable.

Loading content...