pub enum AggregationFunction {
}Expand description
Aggregation functions that can be applied to grouped data
Variants§
Count
Count of rows in each group
Sum(String)
Sum of values in specified column
Mean(String)
Mean/average of values in specified column
Median(String)
Median of values in specified column
Min(String)
Minimum value in specified column
Max(String)
Maximum value in specified column
Std(String)
Standard deviation of values in specified column
Var(String)
Variance of values in specified column
First(String)
First value in specified column (within each group)
Last(String)
Last value in specified column (within each group)
List(String)
Collect all values in specified column into a list
CountUnique(String)
Count unique values in specified column
StringConcat(String, Option<String>)
Concatenate string values in specified column
Implementations§
Source§impl AggregationFunction
impl AggregationFunction
Sourcepub fn to_polars_expr(&self) -> Result<Expr>
pub fn to_polars_expr(&self) -> Result<Expr>
Convert to Polars expression
Sourcepub fn output_column_name(&self) -> String
pub fn output_column_name(&self) -> String
Get the output column name for this aggregation
Trait Implementations§
Source§impl Clone for AggregationFunction
impl Clone for AggregationFunction
Source§fn clone(&self) -> AggregationFunction
fn clone(&self) -> AggregationFunction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AggregationFunction
impl RefUnwindSafe for AggregationFunction
impl Send for AggregationFunction
impl Sync for AggregationFunction
impl Unpin for AggregationFunction
impl UnwindSafe for AggregationFunction
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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