pub enum Expr {
Show 42 variants
Series {
name: SeriesRef,
},
Local {
name: String,
},
Add {
left: Box<Expr>,
right: Box<Expr>,
},
Sub {
left: Box<Expr>,
right: Box<Expr>,
},
Mul {
left: Box<Expr>,
right: Box<Expr>,
},
Div {
left: Box<Expr>,
right: Box<Expr>,
},
Modulo {
left: Box<Expr>,
right: Box<Expr>,
},
FloorDiv {
left: Box<Expr>,
right: Box<Expr>,
},
Pow {
left: Box<Expr>,
right: Box<Expr>,
},
And {
left: Box<Expr>,
right: Box<Expr>,
},
Or {
left: Box<Expr>,
right: Box<Expr>,
},
Not {
expr: Box<Expr>,
},
Abs {
expr: Box<Expr>,
},
Round {
expr: Box<Expr>,
decimals: i32,
},
IsNull {
expr: Box<Expr>,
negated: bool,
},
FillNa {
expr: Box<Expr>,
value: Scalar,
},
DropNa {
expr: Box<Expr>,
},
SortValues {
expr: Box<Expr>,
ascending: bool,
na_position: String,
},
SortIndex {
expr: Box<Expr>,
ascending: bool,
ignore_index: bool,
},
ArgSort {
expr: Box<Expr>,
},
Mode {
expr: Box<Expr>,
dropna: bool,
},
Duplicated {
expr: Box<Expr>,
keep: ExprDuplicateKeep,
},
DropDuplicates {
expr: Box<Expr>,
keep: ExprDuplicateKeep,
},
HeadTail {
expr: Box<Expr>,
n: i64,
tail: bool,
},
TopN {
expr: Box<Expr>,
n: usize,
keep: String,
largest: bool,
},
Replace {
expr: Box<Expr>,
to_replace: Scalar,
value: Scalar,
},
Astype {
expr: Box<Expr>,
dtype: DType,
},
CombineFirst {
left: Box<Expr>,
right: Box<Expr>,
},
Rank {
expr: Box<Expr>,
method: String,
ascending: bool,
na_option: String,
pct: bool,
},
Where {
expr: Box<Expr>,
cond: Box<Expr>,
other: Option<Box<Expr>>,
mask: bool,
},
Between {
expr: Box<Expr>,
left: Scalar,
right: Scalar,
inclusive: BetweenInclusive,
},
Clip {
expr: Box<Expr>,
lower: Option<f64>,
upper: Option<f64>,
},
Shift {
expr: Box<Expr>,
periods: i64,
},
Diff {
expr: Box<Expr>,
periods: i64,
},
CumSum {
expr: Box<Expr>,
},
CumProd {
expr: Box<Expr>,
},
CumMin {
expr: Box<Expr>,
},
CumMax {
expr: Box<Expr>,
},
PctChange {
expr: Box<Expr>,
periods: usize,
},
Compare {
left: Box<Expr>,
right: Box<Expr>,
op: ComparisonOp,
},
IsIn {
left: Box<Expr>,
values: Vec<Scalar>,
negated: bool,
},
Literal {
value: Scalar,
},
}Variants§
Series
Local
Add
Sub
Mul
Div
Modulo
FloorDiv
Pow
And
Or
Not
Abs
Round
IsNull
FillNa
DropNa
SortValues
SortIndex
ArgSort
Mode
Duplicated
DropDuplicates
HeadTail
TopN
Replace
Astype
CombineFirst
Rank
Where
Between
Clip
Shift
Diff
CumSum
CumProd
CumMin
CumMax
PctChange
Compare
IsIn
Literal
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl !RefUnwindSafe for Expr
impl !UnwindSafe for Expr
impl Forget for Expr
impl Freeze for Expr
impl Move for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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