polars::prelude::function_expr

Enum FunctionExpr

pub enum FunctionExpr {
Show 65 variants ArrayExpr(ArrayFunction), BinaryExpr(BinaryFunction), Categorical(CategoricalFunction), ListExpr(ListFunction), StringExpr(StringFunction), StructExpr(StructFunction), TemporalExpr(TemporalFunction), Boolean(BooleanFunction), Abs, Negate, NullCount, Pow(PowFunction), ArgWhere, Range(RangeFunction), FillNull, FillNullWithStrategy(FillNullStrategy), RollingExpr(RollingFunction), RollingExprBy(RollingFunctionBy), ShiftAndFill, Shift, DropNans, DropNulls, Mode, Reshape(Vec<ReshapeDimension>), RepeatBy, ArgUnique, Rank { options: RankOptions, seed: Option<u64>, }, Repeat, Clip { has_min: bool, has_max: bool, }, AsStruct, 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), Interpolate(InterpolationMethod), InterpolateBy, Unique(bool), Round { decimals: u32, }, RoundSF { digits: i32, }, Floor, Ceil, UpperBound, LowerBound, ConcatExpr(bool), ToPhysical, Random { method: RandomMethod, seed: Option<u64>, }, SetSortedFlag(IsSorted), BackwardFill { limit: Option<u32>, }, ForwardFill { limit: Option<u32>, }, MaxHorizontal, MinHorizontal, SumHorizontal { ignore_nulls: bool, }, MeanHorizontal { ignore_nulls: bool, }, Replace, ReplaceStrict { return_dtype: Option<DataType>, }, GatherEvery { n: usize, offset: usize, }, ExtendConstant,
}
Available on crate feature lazy only.

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

Boolean(BooleanFunction)

§

Abs

Available on crate feature abs only.
§

Negate

§

NullCount

§

Pow(PowFunction)

§

ArgWhere

Available on crate feature arg_where only.
§

Range(RangeFunction)

Available on crate feature range 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.
§

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

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

Interpolate(InterpolationMethod)

Available on crate feature interpolate only.
§

InterpolateBy

Available on crate feature interpolate_by 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

§

ConcatExpr(bool)

§

ToPhysical

§

Random

Available on crate feature random only.

Fields

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

SetSortedFlag(IsSorted)

§

BackwardFill

Fields

§limit: Option<u32>
§

ForwardFill

Fields

§limit: Option<u32>
§

MaxHorizontal

§

MinHorizontal

§

SumHorizontal

Fields

§ignore_nulls: bool
§

MeanHorizontal

Fields

§ignore_nulls: bool
§

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§

§

impl Clone for FunctionExpr

§

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
§

impl Debug for FunctionExpr

§

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

Formats the value using the given formatter. Read more
§

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

§

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

§

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

Formats the value using the given formatter. Read more
§

impl From<BinaryFunction> for FunctionExpr

§

fn from(b: BinaryFunction) -> FunctionExpr

Converts to this type from the input type.
§

impl From<BooleanFunction> for FunctionExpr

§

fn from(func: BooleanFunction) -> FunctionExpr

Converts to this type from the input type.
§

impl From<CategoricalFunction> for FunctionExpr

§

fn from(func: CategoricalFunction) -> FunctionExpr

Converts to this type from the input type.
§

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

§

fn from(func: FunctionExpr) -> SpecialEq<Arc<dyn ColumnsUdf>>

Converts to this type from the input type.
§

impl From<StringFunction> for FunctionExpr

§

fn from(str: StringFunction) -> FunctionExpr

Converts to this type from the input type.
§

impl Hash for FunctionExpr

§

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

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
§

impl PartialEq for FunctionExpr

§

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

impl Serialize for FunctionExpr

§

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§

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.

§

impl<T> Instrument for T

§

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

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

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

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

§

fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>

Fallible version of [ToCompactString::to_compact_string()] Read more
§

fn to_compact_string(&self) -> CompactString

Converts the given value to a [CompactString]. Read more
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§

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

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

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>,

§

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

§

impl<T> MaybeSendSync for T