Skip to content

doc/enh: clarify whether nw.GroupBy maintains order or not / add maintain_order to DataFrame.group_by #3309

Open

Description

@danielgafni

What type of report is this?

Improvement

Please describe the issue.

I assume it doesn't, but it's not stated anywhere in the docs, and it lacks the maintain_order argument from Polars.

If you have a suggestion on how it should be, add it below.

No response

Activity

  1. MarcoGorelli commented on Nov 28, 2025

    @MarcoGorelli
    Member

    currently there's no guarantees

    i think i'd be open to adding the option for the DataFrame (not LazyFrame) case

  2. changed the title [-][Doc]: clarify whether `nw.GroupBy` maintains order or not[/-] [+]doc/enh: clarify whether `nw.GroupBy` maintains order or not / add `maintain_order` to `DataFrame.group_by`[/+] on Nov 28, 2025
  3. MarcoGorelli commented on Sep 21, 2026

    @MarcoGorelli
    Member

    this came up here plotly/plotly.py#5766

    I think that adding maintain_order to eager group_by would be good 👍

  4. Stewyn commented on Oct 7, 2026

    @Stewyn

    I've started working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions