Struct polars_plan::dsl::ListNameSpace
source · pub struct ListNameSpace(pub Expr);
Expand description
Specialized expressions for Series
of DataType::List
.
Tuple Fields§
§0: Expr
Implementations§
source§impl ListNameSpace
impl ListNameSpace
sourcepub fn mean(self) -> Expr
pub fn mean(self) -> Expr
Compute the mean of every sublist and return a Series
of dtype Float64
sourcepub fn sort(self, options: SortOptions) -> Expr
pub fn sort(self, options: SortOptions) -> Expr
Sort every sublist.
sourcepub fn join(self, separator: &str) -> Expr
pub fn join(self, separator: &str) -> Expr
Join all string items in a sublist and place a separator between them.
Error
This errors if inner type of list != DataType::Utf8
.
sourcepub fn diff(self, n: usize, null_behavior: NullBehavior) -> Expr
Available on crate feature diff
only.
pub fn diff(self, n: usize, null_behavior: NullBehavior) -> Expr
diff
only.Diff every sublist.