Trait polars_ops::prelude::ListNameSpaceImpl
source · pub trait ListNameSpaceImpl: AsList {
Show 16 methods
fn lst_join(&self, separator: &str) -> PolarsResult<Utf8Chunked> { ... }
fn lst_max(&self) -> Series { ... }
fn lst_min(&self) -> Series { ... }
fn lst_sum(&self) -> Series { ... }
fn lst_mean(&self) -> Float64Chunked { ... }
fn lst_sort(&self, options: SortOptions) -> ListChunked { ... }
fn lst_reverse(&self) -> ListChunked { ... }
fn lst_unique(&self) -> PolarsResult<ListChunked> { ... }
fn lst_arg_min(&self) -> IdxCa { ... }
fn lst_arg_max(&self) -> IdxCa { ... }
fn lst_diff(&self, n: usize, null_behavior: NullBehavior) -> ListChunked { ... }
fn lst_shift(&self, periods: i64) -> ListChunked { ... }
fn lst_slice(&self, offset: i64, length: usize) -> ListChunked { ... }
fn lst_lengths(&self) -> IdxCa { ... }
fn lst_get(&self, idx: i64) -> PolarsResult<Series> { ... }
fn lst_concat(&self, other: &[Series]) -> PolarsResult<ListChunked> { ... }
}
Provided Methods§
sourcefn lst_join(&self, separator: &str) -> PolarsResult<Utf8Chunked>
fn lst_join(&self, separator: &str) -> PolarsResult<Utf8Chunked>
In case the inner dtype DataType::Utf8
, the individual items will be joined into a
single string separated by separator
.
fn lst_max(&self) -> Series
fn lst_min(&self) -> Series
fn lst_sum(&self) -> Series
fn lst_mean(&self) -> Float64Chunked
fn lst_sort(&self, options: SortOptions) -> ListChunked
fn lst_reverse(&self) -> ListChunked
fn lst_unique(&self) -> PolarsResult<ListChunked>
fn lst_arg_min(&self) -> IdxCa
fn lst_arg_max(&self) -> IdxCa
sourcefn lst_diff(&self, n: usize, null_behavior: NullBehavior) -> ListChunked
fn lst_diff(&self, n: usize, null_behavior: NullBehavior) -> ListChunked
Available on crate feature
diff
only.fn lst_shift(&self, periods: i64) -> ListChunked
fn lst_slice(&self, offset: i64, length: usize) -> ListChunked
fn lst_lengths(&self) -> IdxCa
sourcefn lst_get(&self, idx: i64) -> PolarsResult<Series>
fn lst_get(&self, idx: i64) -> PolarsResult<Series>
Get the value by index in the sublists.
So index 0
would return the first item of every sublist
and index -1
would return the last item of every sublist
if an index is out of bounds, it will return a None
.