Struct ListNameSpace
pub struct ListNameSpace(pub Expr);
Available on crate feature
lazy
only.Expand description
Specialized expressions for Series
of DataType::List
.
Tuple Fields§
§0: Expr
Implementations§
§impl ListNameSpace
impl ListNameSpace
pub fn len(self) -> Expr
pub fn len(self) -> Expr
Return the number of elements in each list.
Null values are treated like regular elements in this context.
pub fn median(self) -> Expr
pub fn std(self, ddof: u8) -> Expr
pub fn var(self, ddof: u8) -> Expr
pub fn sort(self, options: SortOptions) -> Expr
pub fn sort(self, options: SortOptions) -> Expr
Sort every sublist.
pub fn unique_stable(self) -> Expr
pub fn unique_stable(self) -> Expr
Keep only the unique values in every sublist.
pub fn n_unique(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 sublist and place a separator between them.
§Error
This errors if inner type of list != DataType::String
.
pub fn diff(self, n: i64, null_behavior: NullBehavior) -> Expr
pub fn diff(self, n: i64, null_behavior: NullBehavior) -> Expr
Diff every sublist.
pub fn to_array(self, width: usize) -> Expr
pub fn to_array(self, width: usize) -> Expr
Convert a List column into an Array column with the same inner data type.
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 list array contain an element
pub fn eval<E>(self, other: E) -> Expr
Auto Trait Implementations§
impl !Freeze for ListNameSpace
impl !RefUnwindSafe for ListNameSpace
impl Send for ListNameSpace
impl Sync for ListNameSpace
impl Unpin for ListNameSpace
impl !UnwindSafe for ListNameSpace
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