Struct polars_plan::dsl::ArrayNameSpace
source · pub struct ArrayNameSpace(pub Expr);
Available on crate feature
dtype-array
only.Expand description
Specialized expressions for Series
of DataType::Array
.
Tuple Fields§
§0: Expr
Implementations§
source§impl ArrayNameSpace
impl ArrayNameSpace
sourcepub fn unique_stable(self) -> Expr
pub fn unique_stable(self) -> Expr
Keep only the unique values in every sub-array.
pub fn n_unique(self) -> Expr
sourcepub fn to_list(self) -> Expr
pub fn to_list(self) -> Expr
Cast the Array column to List column with the same inner data type.
sourcepub fn all(self) -> Expr
Available on crate feature array_any_all
only.
pub fn all(self) -> Expr
array_any_all
only.Evaluate whether all boolean values are true for every subarray.
sourcepub fn any(self) -> Expr
Available on crate feature array_any_all
only.
pub fn any(self) -> Expr
array_any_all
only.Evaluate whether any boolean value is true for every subarray
pub fn sort(self, options: SortOptions) -> Expr
pub fn reverse(self) -> Expr
pub fn arg_min(self) -> Expr
pub fn arg_max(self) -> Expr
sourcepub fn get(self, index: Expr, null_on_oob: bool) -> Expr
pub fn get(self, index: Expr, null_on_oob: bool) -> Expr
Get items in every sub-array by index.
sourcepub fn join(self, separator: Expr, ignore_nulls: bool) -> Expr
pub fn join(self, separator: Expr, ignore_nulls: bool) -> Expr
Join all string items in a sub-array and place a separator between them.
§Error
Raise if inner type of array is not DataType::String
.
Auto Trait Implementations§
impl Freeze for ArrayNameSpace
impl !RefUnwindSafe for ArrayNameSpace
impl Send for ArrayNameSpace
impl Sync for ArrayNameSpace
impl Unpin for ArrayNameSpace
impl !UnwindSafe for ArrayNameSpace
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> 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