pub trait ChunkSort<T> {
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>;
fn sort(&self, reverse: bool) -> ChunkedArray<T>;
fn argsort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>;
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError> { ... }
}
Expand description
Sort operations on ChunkedArray
.
Required methods
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>
fn sort(&self, reverse: bool) -> ChunkedArray<T>
fn sort(&self, reverse: bool) -> ChunkedArray<T>
Returned a sorted ChunkedArray
.
fn argsort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
fn argsort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
Retrieve the indexes needed to sort this array.
Provided methods
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.