Sort a Series
Description
Sort a Series
Usage
<Series>$sort(
...,
descending = FALSE,
nulls_last = FALSE,
multithreaded = TRUE,
in_place = FALSE
)
Arguments
…
|
Ignored. |
descending
|
A logical. If TRUE , sort in descending order.
|
nulls_last
|
A logical. If TRUE , place null values last
insead of first.
|
multithreaded
|
A logical. If TRUE , sort using multiple threads.
|
in_place
|
If TRUE , this will set the flag mutably and return
NULL . Remember to use
options(polars.strictly_immutable = FALSE) before using
this parameter, otherwise an error will occur. If FALSE
(default), it will return a cloned Series with the flag.
|
Value
Series
Examples
#> polars Series: shape: (6,)
#> Series: '' [f64]
#> [
#> null
#> -inf
#> 1.0
#> 1.5
#> inf
#> NaN
#> ]
#> polars Series: shape: (6,)
#> Series: '' [f64]
#> [
#> -inf
#> 1.0
#> 1.5
#> inf
#> NaN
#> null
#> ]