Spec-Zone.ru › Polars

polars.LazyFrame.set_sorted

LazyFrame.set_sorted(
    column: str | list[str],
    *more_columns: str,
    descending: bool | list[bool] = False,
    nulls_last: bool | list[bool] = False,
) → LazyFrame

Flag a column as sorted.

This can speed up future operations.

engine:In MemoryStreamingDistributed
Parameters:
column

Column(s) that is sorted

more_columns

Columns that are sorted over after column.

descending

Whether the column is sorted in descending order.

nulls_last

Whether the nulls are at the end.

Warning

This can lead to incorrect results if the data is NOT sorted!! Use with care!

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/lazyframe/api/polars.LazyFrame.set_sorted.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API