Skip to content

关于排序 #31

@peyoo

Description

@peyoo

对于 https://github.com/wukan1986/expr_codegen/blob/main/expr_codegen/polars/code.py 上的get_groupby_from_tuple 方法里的排序。
如果输入的df 为lazyframe 这里排序没有意义,我测试了一下,不排序反而能提高速度。对于df为DataFrame的情况,sort 但不设置sorted ,polars实际无法感知到,sort在这里也是没有意义的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions