Trait polars_core::chunked_array::ops::ChunkSort
source · [−]pub trait ChunkSort<T: PolarsDataType> {
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>;
fn sort(&self, reverse: bool) -> ChunkedArray<T>;
fn argsort(&self, options: SortOptions) -> IdxCa;
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> PolarsResult<IdxCa> { ... }
}
Expand description
Sort operations on ChunkedArray
.
Required Methods
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>
sourcefn sort(&self, reverse: bool) -> ChunkedArray<T>
fn sort(&self, reverse: bool) -> ChunkedArray<T>
Returned a sorted ChunkedArray
.
sourcefn argsort(&self, options: SortOptions) -> IdxCa
fn argsort(&self, options: SortOptions) -> IdxCa
Retrieve the indexes needed to sort this array.
Provided Methods
sourcefn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> PolarsResult<IdxCa>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> PolarsResult<IdxCa>
Retrieve the indexes need to sort this and the other arrays.