Struct ArrayNameSpace
pub struct ArrayNameSpace(pub Expr);
Available on crate feature
lazy
only.Expand description
Specialized expressions for Series
of DataType::Array
.
Tuple Fields§
§0: Expr
Implementations§
§impl ArrayNameSpace
impl ArrayNameSpace
pub 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
pub fn sort(self, options: SortOptions) -> Expr
pub fn reverse(self) -> Expr
pub fn arg_min(self) -> Expr
pub fn arg_max(self) -> Expr
pub 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
.
pub fn contains<E>(self, other: E, nulls_equal: bool) -> Expr
pub fn contains<E>(self, other: E, nulls_equal: bool) -> Expr
Check if the sub-array contains specific element
pub fn slice(
self,
offset: Expr,
length: Expr,
as_array: bool,
) -> Result<Expr, PolarsError>
pub fn slice( self, offset: Expr, length: Expr, as_array: bool, ) -> Result<Expr, PolarsError>
Slice every subarray.
pub fn head(self, n: Expr, as_array: bool) -> Result<Expr, PolarsError>
pub fn head(self, n: Expr, as_array: bool) -> Result<Expr, PolarsError>
Get the head of every subarray
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
§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 more