polars.DataFrame.set_sorted#

DataFrame.set_sorted(
column: str | Iterable[str],
*more_columns: str,
descending: bool = False,
) DataFrame[source]#

Indicate that one or multiple columns are sorted.

Parameters:
column

Columns that are sorted

more_columns

Additional columns that are sorted, specified as positional arguments.

descending

Whether the columns are sorted in descending order.