polars.Series.argsort#

Series.argsort(reverse: bool = False, nulls_last: bool = False) Series[source]#

Get the index values that would sort this Series.

Alias for Series.arg_sort().

Parameters:
reverse

Sort in reverse (descending) order.

nulls_last

Place null values last instead of first.