Struct polars::prelude::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 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 join(self, separator: Expr) -> Expr
pub fn join(self, separator: Expr) -> Expr
Join all string items in a sublist and place a separator between them.
Error
This errors if inner type of list != DataType::Utf8
.
pub fn diff(self, n: i64, null_behavior: NullBehavior) -> Expr
Available on crate feature diff
only.
pub fn diff(self, n: i64, null_behavior: NullBehavior) -> Expr
diff
only.Diff every sublist.
Trait Implementations§
source§impl IntoListNameSpace for ListNameSpace
impl IntoListNameSpace for ListNameSpace
fn into_list_name_space(self) -> ListNameSpace
Auto Trait Implementations§
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