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

Returned a sorted ChunkedArray.

Sort this array in place.

Retrieve the indexes needed to sort this array.

Provided methods

Retrieve the indexes need to sort this and the other arrays.

Implementors

Panics

This function is very opinionated. On the implementation of ChunkedArray<T> for numeric types, we assume that all numeric Series are of the same type.

In this case we assume that all numeric Series are f64 types. The caller needs to uphold this contract. If not, it will panic.

Panics

This function is very opinionated. We assume that all numeric Series are of the same type, if not it will panic