Trait polars::chunked_array::object::ChunkSort [−][src]
pub trait ChunkSort<T> {
fn sort(&self, reverse: bool) -> ChunkedArray<T>;
fn sort_in_place(&mut self, reverse: bool);
fn argsort(&self, reverse: bool) -> ChunkedArray<UInt32Type>;
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError> { ... }
}
Expand description
Sort operations on ChunkedArray
.
Required methods
fn sort(&self, reverse: bool) -> ChunkedArray<T>
fn sort(&self, reverse: bool) -> ChunkedArray<T>
Returned a sorted ChunkedArray
.
fn sort_in_place(&mut self, reverse: bool)
fn sort_in_place(&mut self, reverse: bool)
Sort this array in place.
fn argsort(&self, reverse: bool) -> ChunkedArray<UInt32Type>
fn argsort(&self, reverse: bool) -> 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.