Skip to content

Adding sorted in dy.Column #357

Description

@gab23r

Polars 1.42+ provides pl.Expr.is_sorted() which returns a boolean indicating whether the column is sorted.

It could be nice that this check could be define in a dataframely schema without needing a custom check.

Implementation:sorted could take 3 values: "ascending", "descending" and "None" (the default). The polars implementation takes as well a nulls_last argument, maybe we shouldn't include this complexity here and user could use a custom check if the position of nulls maters. WDYT ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions