Skip to content

Indicate that one or multiple columns are sorted

Description

This can speed up future operations, but it can lead to incorrect results if the data is not sorted! Use with care!

Usage

<LazyFrame>$set_sorted(column, ..., descending = FALSE)

Arguments

column Column that is sorted.
These dots are for future extensions and must be empty.
descending Whether the columns are sorted in descending order.

Value

A polars LazyFrame