Trait polars_ops::chunked_array::list::ListNameSpaceImpl
source · pub trait ListNameSpaceImpl: AsList {
Show 23 methods
// Provided methods
fn lst_join(
&self,
separator: &StringChunked,
ignore_nulls: bool
) -> PolarsResult<StringChunked> { ... }
fn join_literal(
&self,
separator: &str,
ignore_nulls: bool
) -> PolarsResult<StringChunked> { ... }
fn join_many(
&self,
separator: &StringChunked,
ignore_nulls: bool
) -> PolarsResult<StringChunked> { ... }
fn lst_max(&self) -> PolarsResult<Series> { ... }
fn lst_min(&self) -> PolarsResult<Series> { ... }
fn lst_sum(&self) -> PolarsResult<Series> { ... }
fn lst_mean(&self) -> Series { ... }
fn lst_median(&self) -> Series { ... }
fn lst_std(&self, ddof: u8) -> Series { ... }
fn lst_var(&self, ddof: u8) -> Series { ... }
fn same_type(&self, out: ListChunked) -> ListChunked { ... }
fn lst_sort(&self, options: SortOptions) -> PolarsResult<ListChunked> { ... }
fn lst_reverse(&self) -> ListChunked { ... }
fn lst_n_unique(&self) -> PolarsResult<IdxCa> { ... }
fn lst_unique(&self) -> PolarsResult<ListChunked> { ... }
fn lst_unique_stable(&self) -> PolarsResult<ListChunked> { ... }
fn lst_arg_min(&self) -> IdxCa { ... }
fn lst_arg_max(&self) -> IdxCa { ... }
fn lst_shift(&self, periods: &Series) -> PolarsResult<ListChunked> { ... }
fn lst_slice(&self, offset: i64, length: usize) -> ListChunked { ... }
fn lst_lengths(&self) -> IdxCa { ... }
fn lst_get(&self, idx: i64, null_on_oob: bool) -> PolarsResult<Series> { ... }
fn lst_concat(&self, other: &[Series]) -> PolarsResult<ListChunked> { ... }
}
Provided Methods§
sourcefn lst_join(
&self,
separator: &StringChunked,
ignore_nulls: bool
) -> PolarsResult<StringChunked>
fn lst_join( &self, separator: &StringChunked, ignore_nulls: bool ) -> PolarsResult<StringChunked>
In case the inner dtype DataType::String
, the individual items will be joined into a
single string separated by separator
.
fn join_literal( &self, separator: &str, ignore_nulls: bool ) -> PolarsResult<StringChunked>
fn join_many( &self, separator: &StringChunked, ignore_nulls: bool ) -> PolarsResult<StringChunked>
fn lst_max(&self) -> PolarsResult<Series>
fn lst_min(&self) -> PolarsResult<Series>
fn lst_sum(&self) -> PolarsResult<Series>
fn lst_mean(&self) -> Series
fn lst_median(&self) -> Series
fn lst_std(&self, ddof: u8) -> Series
fn lst_var(&self, ddof: u8) -> Series
fn same_type(&self, out: ListChunked) -> ListChunked
fn lst_sort(&self, options: SortOptions) -> PolarsResult<ListChunked>
fn lst_reverse(&self) -> ListChunked
fn lst_n_unique(&self) -> PolarsResult<IdxCa>
fn lst_unique(&self) -> PolarsResult<ListChunked>
fn lst_unique_stable(&self) -> PolarsResult<ListChunked>
fn lst_arg_min(&self) -> IdxCa
fn lst_arg_max(&self) -> IdxCa
fn lst_shift(&self, periods: &Series) -> PolarsResult<ListChunked>
fn lst_slice(&self, offset: i64, length: usize) -> ListChunked
fn lst_lengths(&self) -> IdxCa
sourcefn lst_get(&self, idx: i64, null_on_oob: bool) -> PolarsResult<Series>
fn lst_get(&self, idx: i64, null_on_oob: bool) -> 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
.