polars_plan::dsl::function_expr

Enum FunctionExpr

Source
pub enum FunctionExpr {
Show 94 variants ArrayExpr(ArrayFunction), BinaryExpr(BinaryFunction), Categorical(CategoricalFunction), 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, SearchSorted(SearchSortedSide), Range(RangeFunction), Trigonometry(TrigonometricFunction), Atan2, Sign, FillNull, FillNullWithStrategy(FillNullStrategy), RollingExpr(RollingFunction), RollingExprBy(RollingFunctionBy), ShiftAndFill, Shift, DropNans, DropNulls, Mode, Skew(bool), Kurtosis(bool, bool), Reshape(Vec<ReshapeDimension>), RepeatBy, ArgUnique, 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, ShrinkType, Diff(i64, NullBehavior), PctChange, Interpolate(InterpolationMethod), InterpolateBy, Entropy { base: f64, normalize: bool, }, Log { base: f64, }, Log1p, Exp, Unique(bool), Round { decimals: u32, }, RoundSF { digits: i32, }, Floor, Ceil, UpperBound, LowerBound, Fused(FusedOperator), 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), BackwardFill { limit: FillNullLimit, }, ForwardFill { limit: FillNullLimit, }, 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<DataType>, }, GatherEvery { n: usize, offset: usize, }, ExtendConstant,
}

Variants§

§

ArrayExpr(ArrayFunction)

Available on crate feature dtype-array only.
§

BinaryExpr(BinaryFunction)

§

Categorical(CategoricalFunction)

Available on crate feature dtype-categorical 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.

Fields

§bin_count: Option<usize>
§include_category: bool
§include_breakpoint: bool
§

NullCount

§

Pow(PowFunction)

§

Hash(u64, u64, u64, u64)

Available on crate feature row_hash only.
§

ArgWhere

Available on crate feature arg_where only.
§

SearchSorted(SearchSortedSide)

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(RollingFunction)

Available on crate feature rolling_window only.
§

RollingExprBy(RollingFunctionBy)

Available on crate feature rolling_window_by only.
§

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

§

Rank

Available on crate feature rank only.

Fields

§options: RankOptions
§seed: Option<u64>
§

Repeat

§

Clip

Available on crate feature round_series only.

Fields

§has_min: bool
§has_max: bool
§

AsStruct

Available on crate feature dtype-struct only.
§

TopK

Available on crate feature top_k only.

Fields

§descending: bool
§

TopKBy

Available on crate feature top_k only.

Fields

§descending: Vec<bool>
§

CumCount

Available on crate feature cum_agg only.

Fields

§reverse: bool
§

CumSum

Available on crate feature cum_agg only.

Fields

§reverse: bool
§

CumProd

Available on crate feature cum_agg only.

Fields

§reverse: bool
§

CumMin

Available on crate feature cum_agg only.

Fields

§reverse: bool
§

CumMax

Available on crate feature cum_agg only.

Fields

§reverse: bool
§

Reverse

§

ValueCounts

Available on crate feature dtype-struct only.

Fields

§sort: bool
§parallel: bool
§normalize: bool
§

UniqueCounts

Available on crate feature unique_counts only.
§

ApproxNUnique

Available on crate feature approx_unique only.
§

Coalesce

§

ShrinkType

§

Diff(i64, 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.

Fields

§base: f64
§normalize: bool
§

Log

Available on crate feature log only.

Fields

§base: f64
§

Log1p

Available on crate feature log only.
§

Exp

Available on crate feature log only.
§

Unique(bool)

§

Round

Available on crate feature round_series only.

Fields

§decimals: u32
§

RoundSF

Available on crate feature round_series only.

Fields

§digits: i32
§

Floor

Available on crate feature round_series only.
§

Ceil

Available on crate feature round_series only.
§

UpperBound

§

LowerBound

§

Fused(FusedOperator)

Available on crate feature fused only.
§

ConcatExpr(bool)

§

Correlation

Available on crate feature cov only.

Fields

§method: CorrelationMethod
§

PeakMin

Available on crate feature peaks only.
§

PeakMax

Available on crate feature peaks only.
§

Cut

Available on crate feature cutqcut only.

Fields

§breaks: Vec<f64>
§left_closed: bool
§include_breaks: bool
§

QCut

Available on crate feature cutqcut only.

Fields

§probs: Vec<f64>
§left_closed: bool
§allow_duplicates: bool
§include_breaks: bool
§

RLE

Available on crate feature rle only.
§

RLEID

Available on crate feature rle only.
§

ToPhysical

§

Random

Available on crate feature random only.

Fields

§method: RandomMethod
§seed: Option<u64>
§

SetSortedFlag(IsSorted)

§

BackwardFill

Fields

§

ForwardFill

Fields

§

MaxHorizontal

§

MinHorizontal

§

SumHorizontal

Fields

§ignore_nulls: bool
§

MeanHorizontal

Fields

§ignore_nulls: bool
§

EwmMean

Available on crate feature ewma only.

Fields

§options: EWMOptions
§

EwmMeanBy

Available on crate feature ewma_by only.

Fields

§half_life: Duration
§

EwmStd

Available on crate feature ewma only.

Fields

§options: EWMOptions
§

EwmVar

Available on crate feature ewma only.

Fields

§options: EWMOptions
§

Replace

Available on crate feature replace only.
§

ReplaceStrict

Available on crate feature replace only.

Fields

§return_dtype: Option<DataType>
§

GatherEvery

Fields

§offset: usize
§

ExtendConstant

Trait Implementations§

Source§

impl Clone for FunctionExpr

Source§

fn clone(&self) -> FunctionExpr

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FunctionExpr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FunctionExpr

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for FunctionExpr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BooleanFunction> for FunctionExpr

Source§

fn from(func: BooleanFunction) -> Self

Converts to this type from the input type.
Source§

impl From<CategoricalFunction> for FunctionExpr

Available on crate feature dtype-categorical only.
Source§

fn from(func: CategoricalFunction) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionExpr> for SpecialEq<Arc<dyn ColumnsUdf>>

Source§

fn from(func: FunctionExpr) -> Self

Converts to this type from the input type.
Source§

impl From<StringFunction> for FunctionExpr

Available on crate feature strings only.
Source§

fn from(str: StringFunction) -> Self

Converts to this type from the input type.
Source§

impl Hash for FunctionExpr

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for FunctionExpr

Source§

fn eq(&self, other: &FunctionExpr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FunctionExpr

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FunctionExpr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Ungil for T
where T: Send,