polars.Expr.set_sorted¶
- Expr.set_sorted(reverse: bool = False) polars.internals.expr.Expr ¶
Set this Series as sorted so that downstream code can use fast paths for sorted arrays.
Warning
This can lead to incorrect results if this Series is not sorted!! Use with care!
- Parameters
- reverse
If the Series order is reversed, e.g. descending.