pub enum Reduction {
}Expand description
A reduction for reduce and groupby_reduce.
Variants§
Sum
Sum of the values.
Prod
Product of the values.
Mean
Arithmetic mean.
Min
Smallest value.
Max
Largest value.
Count
Number of non-null values.
Var
Variance with ddof delta degrees of freedom, like numpy.var.
Std
Standard deviation with ddof delta degrees of freedom, like numpy.std.
Median
Middle value, with linear interpolation.
Quantile(f64)
Quantile q in [0, 1] with linear interpolation, like numpy.quantile.
Any
true when any value is true or non-zero.
All
true when all values are true or non-zero.
ArgMin
Index of the first minimum along the reduced axis (or the flat index for all axes).
ArgMax
Index of the first maximum along the reduced axis (or the flat index for all axes).
Trait Implementations§
impl Copy for Reduction
impl StructuralPartialEq for Reduction
Auto Trait Implementations§
impl Freeze for Reduction
impl RefUnwindSafe for Reduction
impl Send for Reduction
impl Sync for Reduction
impl Unpin for Reduction
impl UnsafeUnpin for Reduction
impl UnwindSafe for Reduction
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more