diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 66a7f7d1472f..6d6db448e323 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -11345,16 +11345,16 @@ def set_sorted( descending: bool = False, ) -> DataFrame: """ - Indicate that one or multiple columns are sorted. + Flag a column as sorted. This can speed up future operations. Parameters ---------- column - Column that are sorted + Column that is sorted descending - Whether the columns are sorted in descending order. + Whether the column is sorted in descending order. Warnings -------- diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index 5453daa3995c..5c0a6a87acae 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -6909,16 +6909,16 @@ def set_sorted( descending: bool = False, ) -> LazyFrame: """ - Indicate that one or multiple columns are sorted. + Flag a column as sorted. This can speed up future operations. Parameters ---------- column - Columns that are sorted + Column that is sorted descending - Whether the columns are sorted in descending order. + Whether the column is sorted in descending order. Warnings --------