polars.Series.arg_sort# Series.arg_sort( *, descending: bool = False, nulls_last: bool = False, ) → Series[source]# Get the index values that would sort this Series. Parameters: descendingSort in descending order. nulls_lastPlace null values last instead of first. Examples >>> s = pl.Series("a", [5, 3, 4, 1, 2]) >>> s.arg_sort() shape: (5,) Series: 'a' [u32] [ 3 4 1 2 0 ]