Enum polars::prelude::FunctionExpr

source ·
pub enum FunctionExpr {
Show 59 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 { super_type: DataType, }, FillNullWithStrategy(FillNullStrategy), RollingExpr(RollingFunction), ShiftAndFill, Shift, DropNans, DropNulls, Mode, Reshape(Vec<i64>), RepeatBy, ArgUnique, Rank { options: RankOptions, seed: Option<u64>, }, 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, }, Coalesce, ShrinkType, Diff(i64, NullBehavior), Interpolate(InterpolationMethod), 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, MeanHorizontal, Replace { 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

Fields

§super_type: DataType
§

FillNullWithStrategy(FillNullStrategy)

§

RollingExpr(RollingFunction)

Available on crate feature rolling_window only.
§

ShiftAndFill

§

Shift

§

DropNans

§

DropNulls

§

Mode

Available on crate feature mode only.
§

Reshape(Vec<i64>)

§

RepeatBy

Available on crate feature repeat_by only.
§

ArgUnique

§

Rank

Available on crate feature rank only.

Fields

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

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
§

Coalesce

§

ShrinkType

§

Diff(i64, NullBehavior)

Available on crate feature diff only.
§

Interpolate(InterpolationMethod)

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

§

MeanHorizontal

§

Replace

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<(), Error>

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

impl Display for FunctionExpr

source§

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

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

impl From<BinaryFunction> for FunctionExpr

source§

fn from(b: BinaryFunction) -> FunctionExpr

Converts to this type from the input type.
source§

impl From<BooleanFunction> for FunctionExpr

source§

fn from(func: BooleanFunction) -> FunctionExpr

Converts to this type from the input type.
source§

impl From<CategoricalFunction> for FunctionExpr

source§

fn from(func: CategoricalFunction) -> FunctionExpr

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<StringFunction> for FunctionExpr

source§

fn from(str: StringFunction) -> FunctionExpr

Converts to this type from the input type.
source§

impl Hash for FunctionExpr

source§

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

impl PartialEq for FunctionExpr

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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> 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, 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.
§

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> ToOwned for T
where T: Clone,

§

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

§

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

§

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