pub struct PhysicalExprWithConstCols { /* private fields */ }Expand description
Helper for the PhysicalExpr trait to include constant columns.
Trait Implementations§
Source§impl PhysicalExpr for PhysicalExprWithConstCols
impl PhysicalExpr for PhysicalExprWithConstCols
Source§fn evaluate(
&self,
df: &DataFrame,
state: &ExecutionState,
) -> PolarsResult<Column>
fn evaluate( &self, df: &DataFrame, state: &ExecutionState, ) -> PolarsResult<Column>
Take a DataFrame and evaluate the expression.
Source§fn evaluate_on_groups<'a>(
&self,
df: &DataFrame,
groups: &'a GroupPositions,
state: &ExecutionState,
) -> PolarsResult<AggregationContext<'a>>
fn evaluate_on_groups<'a>( &self, df: &DataFrame, groups: &'a GroupPositions, state: &ExecutionState, ) -> PolarsResult<AggregationContext<'a>>
Some expression that are not aggregations can be done per group
Think of sort, slice, filter, shift, etc.
defaults to ignoring the group Read more
Source§fn to_field(&self, input_schema: &Schema) -> PolarsResult<Field>
fn to_field(&self, input_schema: &Schema) -> PolarsResult<Field>
Get the output field of this expr
fn is_scalar(&self) -> bool
fn as_expression(&self) -> Option<&Expr>
fn is_literal(&self) -> bool
Auto Trait Implementations§
impl Freeze for PhysicalExprWithConstCols
impl !RefUnwindSafe for PhysicalExprWithConstCols
impl Send for PhysicalExprWithConstCols
impl Sync for PhysicalExprWithConstCols
impl Unpin for PhysicalExprWithConstCols
impl !UnwindSafe for PhysicalExprWithConstCols
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> 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