Enum FunctionExpr
pub enum FunctionExpr {
Show 106 variants
ArrayExpr(ArrayFunction),
BinaryExpr(BinaryFunction),
Categorical(CategoricalFunction),
Extension(ExtensionFunction),
ListExpr(ListFunction),
StringExpr(StringFunction),
StructExpr(StructFunction),
TemporalExpr(TemporalFunction),
Bitwise(BitwiseFunction),
Boolean(BooleanFunction),
Business(BusinessFunction),
Abs,
Negate,
Hist {
bin_count: Option<usize>,
include_category: bool,
include_breakpoint: bool,
},
NullCount,
Pow(PowFunction),
Hash(u64, u64, u64, u64),
ArgWhere,
IndexOf,
SearchSorted {
side: SearchSortedSide,
descending: bool,
},
Range(RangeFunction),
Trigonometry(TrigonometricFunction),
Atan2,
Sign,
FillNull,
FillNullWithStrategy(FillNullStrategy),
RollingExpr {
function: RollingFunction,
options: RollingOptionsFixedWindow,
},
RollingExprBy {
function_by: RollingFunctionBy,
options: RollingOptionsDynamicWindow,
},
Rechunk,
Append {
upcast: bool,
},
ShiftAndFill,
Shift,
DropNans,
DropNulls,
Mode {
maintain_order: bool,
},
Skew(bool),
Kurtosis(bool, bool),
Reshape(Vec<ReshapeDimension>),
RepeatBy,
ArgUnique,
ArgMin,
ArgMax,
ArgSort {
descending: bool,
nulls_last: bool,
},
Product,
Rank {
options: RankOptions,
seed: Option<u64>,
},
Repeat,
Clip {
has_min: bool,
has_max: bool,
},
AsStruct,
TopK {
descending: bool,
},
TopKBy {
descending: Vec<bool>,
},
CumCount {
reverse: bool,
},
CumSum {
reverse: bool,
},
CumProd {
reverse: bool,
},
CumMin {
reverse: bool,
},
CumMax {
reverse: bool,
},
Reverse,
ValueCounts {
sort: bool,
parallel: bool,
name: PlSmallStr,
normalize: bool,
},
UniqueCounts,
ApproxNUnique,
Coalesce,
Diff(NullBehavior),
PctChange,
Interpolate(InterpolationMethod),
InterpolateBy,
Entropy {
base: f64,
normalize: bool,
},
Log,
Log1p,
Exp,
Unique(bool),
Round {
decimals: u32,
mode: RoundMode,
},
RoundSF {
digits: i32,
},
Floor,
Ceil,
UpperBound,
LowerBound,
ConcatExpr(bool),
Correlation {
method: CorrelationMethod,
},
PeakMin,
PeakMax,
Cut {
breaks: Vec<f64>,
labels: Option<Vec<PlSmallStr>>,
left_closed: bool,
include_breaks: bool,
},
QCut {
probs: Vec<f64>,
labels: Option<Vec<PlSmallStr>>,
left_closed: bool,
allow_duplicates: bool,
include_breaks: bool,
},
RLE,
RLEID,
ToPhysical,
Random {
method: RandomMethod,
seed: Option<u64>,
},
SetSortedFlag(IsSorted),
FfiPlugin {
flags: FunctionOptions,
lib: PlSmallStr,
symbol: PlSmallStr,
kwargs: Arc<[u8]>,
},
FoldHorizontal {
callback: PlanCallback<(Series, Series), Series>,
returns_scalar: bool,
return_dtype: Option<DataTypeExpr>,
},
ReduceHorizontal {
callback: PlanCallback<(Series, Series), Series>,
returns_scalar: bool,
return_dtype: Option<DataTypeExpr>,
},
CumReduceHorizontal {
callback: PlanCallback<(Series, Series), Series>,
returns_scalar: bool,
return_dtype: Option<DataTypeExpr>,
},
CumFoldHorizontal {
callback: PlanCallback<(Series, Series), Series>,
returns_scalar: bool,
return_dtype: Option<DataTypeExpr>,
include_init: bool,
},
MaxHorizontal,
MinHorizontal,
SumHorizontal {
ignore_nulls: bool,
},
MeanHorizontal {
ignore_nulls: bool,
},
EwmMean {
options: EWMOptions,
},
EwmMeanBy {
half_life: Duration,
},
EwmStd {
options: EWMOptions,
},
EwmVar {
options: EWMOptions,
},
Replace,
ReplaceStrict {
return_dtype: Option<DataTypeExpr>,
},
GatherEvery {
n: usize,
offset: usize,
},
Reinterpret(bool),
ExtendConstant,
RowEncode(RowEncodingVariant),
RowDecode(Vec<(PlSmallStr, DataTypeExpr)>, RowEncodingVariant),
}Variants§
ArrayExpr(ArrayFunction)
Available on crate feature
dtype-array only.BinaryExpr(BinaryFunction)
Categorical(CategoricalFunction)
Available on crate feature
dtype-categorical only.Extension(ExtensionFunction)
Available on crate feature
dtype-extension only.ListExpr(ListFunction)
StringExpr(StringFunction)
Available on crate feature
strings only.StructExpr(StructFunction)
Available on crate feature
dtype-struct only.TemporalExpr(TemporalFunction)
Available on crate feature
temporal only.Bitwise(BitwiseFunction)
Available on crate feature
bitwise only.Boolean(BooleanFunction)
Business(BusinessFunction)
Available on crate feature
business only.Abs
Available on crate feature
abs only.Negate
Hist
Available on crate feature
hist only.NullCount
Pow(PowFunction)
Hash(u64, u64, u64, u64)
Available on crate feature
row_hash only.ArgWhere
Available on crate feature
arg_where only.IndexOf
Available on crate feature
index_of only.SearchSorted
Available on crate feature
search_sorted only.Range(RangeFunction)
Available on crate feature
range only.Trigonometry(TrigonometricFunction)
Available on crate feature
trigonometry only.Atan2
Available on crate feature
trigonometry only.Sign
Available on crate feature
sign only.FillNull
FillNullWithStrategy(FillNullStrategy)
RollingExpr
Available on crate feature
rolling_window only.RollingExprBy
Available on crate feature
rolling_window_by only.Rechunk
Append
ShiftAndFill
Shift
DropNans
DropNulls
Mode
Available on crate feature
mode only.Skew(bool)
Available on crate feature
moment only.Kurtosis(bool, bool)
Available on crate feature
moment only.Reshape(Vec<ReshapeDimension>)
Available on crate feature
dtype-array only.RepeatBy
Available on crate feature
repeat_by only.ArgUnique
ArgMin
ArgMax
ArgSort
Product
Rank
Available on crate feature
rank only.Repeat
Clip
Available on crate feature
round_series only.AsStruct
Available on crate feature
dtype-struct only.TopK
Available on crate feature
top_k only.TopKBy
Available on crate feature
top_k only.CumCount
Available on crate feature
cum_agg only.CumSum
Available on crate feature
cum_agg only.CumProd
Available on crate feature
cum_agg only.CumMin
Available on crate feature
cum_agg only.CumMax
Available on crate feature
cum_agg only.Reverse
ValueCounts
Available on crate feature
dtype-struct only.UniqueCounts
Available on crate feature
unique_counts only.ApproxNUnique
Available on crate feature
approx_unique only.Coalesce
Diff(NullBehavior)
Available on crate feature
diff only.PctChange
Available on crate feature
pct_change only.Interpolate(InterpolationMethod)
Available on crate feature
interpolate only.InterpolateBy
Available on crate feature
interpolate_by only.Entropy
Available on crate feature
log only.Log
Available on crate feature
log only.Log1p
Available on crate feature
log only.Exp
Available on crate feature
log only.Unique(bool)
Round
Available on crate feature
round_series only.RoundSF
Available on crate feature
round_series only.Floor
Available on crate feature
round_series only.Ceil
Available on crate feature
round_series only.UpperBound
LowerBound
ConcatExpr(bool)
Correlation
Available on crate feature
cov only.Fields
§
method: CorrelationMethodPeakMin
Available on crate feature
peaks only.PeakMax
Available on crate feature
peaks only.Cut
Available on crate feature
cutqcut only.QCut
Available on crate feature
cutqcut only.Fields
§
labels: Option<Vec<PlSmallStr>>RLE
Available on crate feature
rle only.RLEID
Available on crate feature
rle only.ToPhysical
Random
Available on crate feature
random only.SetSortedFlag(IsSorted)
FfiPlugin
Available on crate feature
ffi_plugin only.Creating this node is unsafe This will lead to calls over FFI.
Fields
§
flags: FunctionOptions§
lib: PlSmallStrShared library.
§
symbol: PlSmallStrIdentifier in the shared lib.
FoldHorizontal
ReduceHorizontal
CumReduceHorizontal
Available on crate feature
dtype-struct only.CumFoldHorizontal
Available on crate feature
dtype-struct only.MaxHorizontal
MinHorizontal
SumHorizontal
MeanHorizontal
EwmMean
Available on crate feature
ewma only.Fields
§
options: EWMOptionsEwmMeanBy
Available on crate feature
ewma_by only.EwmStd
Available on crate feature
ewma only.Fields
§
options: EWMOptionsEwmVar
Available on crate feature
ewma only.Fields
§
options: EWMOptionsReplace
Available on crate feature
replace only.ReplaceStrict
Available on crate feature
replace only.Fields
§
return_dtype: Option<DataTypeExpr>GatherEvery
Reinterpret(bool)
Available on crate feature
reinterpret only.ExtendConstant
RowEncode(RowEncodingVariant)
RowDecode(Vec<(PlSmallStr, DataTypeExpr)>, RowEncodingVariant)
Available on crate feature
dtype-struct only.Trait Implementations§
§impl Clone for FunctionExpr
impl Clone for FunctionExpr
§fn clone(&self) -> FunctionExpr
fn clone(&self) -> FunctionExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FunctionExpr
impl Debug for FunctionExpr
§impl<'de> Deserialize<'de> for FunctionExpr
impl<'de> Deserialize<'de> for FunctionExpr
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for FunctionExpr
impl Display for FunctionExpr
§impl From<ArrayFunction> for FunctionExpr
impl From<ArrayFunction> for FunctionExpr
§fn from(value: ArrayFunction) -> FunctionExpr
fn from(value: ArrayFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<BooleanFunction> for FunctionExpr
impl From<BooleanFunction> for FunctionExpr
§fn from(value: BooleanFunction) -> FunctionExpr
fn from(value: BooleanFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<CategoricalFunction> for FunctionExpr
impl From<CategoricalFunction> for FunctionExpr
§fn from(func: CategoricalFunction) -> FunctionExpr
fn from(func: CategoricalFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<ExtensionFunction> for FunctionExpr
impl From<ExtensionFunction> for FunctionExpr
§fn from(func: ExtensionFunction) -> FunctionExpr
fn from(func: ExtensionFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<ListFunction> for FunctionExpr
impl From<ListFunction> for FunctionExpr
§fn from(value: ListFunction) -> FunctionExpr
fn from(value: ListFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<PowFunction> for FunctionExpr
impl From<PowFunction> for FunctionExpr
§fn from(value: PowFunction) -> FunctionExpr
fn from(value: PowFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<RangeFunction> for FunctionExpr
impl From<RangeFunction> for FunctionExpr
§fn from(value: RangeFunction) -> FunctionExpr
fn from(value: RangeFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<StringFunction> for FunctionExpr
impl From<StringFunction> for FunctionExpr
§fn from(value: StringFunction) -> FunctionExpr
fn from(value: StringFunction) -> FunctionExpr
Converts to this type from the input type.
§impl From<TrigonometricFunction> for FunctionExpr
impl From<TrigonometricFunction> for FunctionExpr
§fn from(value: TrigonometricFunction) -> FunctionExpr
fn from(value: TrigonometricFunction) -> FunctionExpr
Converts to this type from the input type.
§impl Hash for FunctionExpr
impl Hash for FunctionExpr
§impl PartialEq for FunctionExpr
impl PartialEq for FunctionExpr
§impl Serialize for FunctionExpr
impl Serialize for FunctionExpr
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FunctionExpr
Auto Trait Implementations§
impl Freeze for FunctionExpr
impl !RefUnwindSafe for FunctionExpr
impl Send for FunctionExpr
impl Sync for FunctionExpr
impl Unpin for FunctionExpr
impl !UnwindSafe for FunctionExpr
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.