pub enum TidyAgg {
}Expand description
An aggregator expression for use in summarise.
Variants§
Count
Row count for the group. No column argument.
Sum(String)
Kahan-sum of a numeric column.
Mean(String)
Arithmetic mean (NaN for empty groups).
Min(String)
Minimum value (NaN for empty groups). NaN inputs sort last.
Max(String)
Maximum value (NaN for empty groups). NaN inputs sort last.
First(String)
First row’s value (error for empty groups).
Last(String)
Last row’s value (error for empty groups).
Median(String)
Median of a numeric column.
Sd(String)
Sample standard deviation (Kahan-based).
Var(String)
Sample variance (Kahan-based).
Quantile(String, f64)
Quantile at probability p ∈ [0, 1], using linear interpolation.
NDistinct(String)
Count of distinct values (uses BTreeSet).
Iqr(String)
Interquartile range (Q3 − Q1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TidyAgg
impl RefUnwindSafe for TidyAgg
impl Send for TidyAgg
impl Sync for TidyAgg
impl Unpin for TidyAgg
impl UnsafeUnpin for TidyAgg
impl UnwindSafe for TidyAgg
Blanket Implementations§
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
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