You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc/enh: clarify whether nw.GroupBy maintains order or not / add maintain_order to DataFrame.group_by #3309
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
Activity
MarcoGorelli commentedon Nov 28, 2025
currently there's no guarantees
i think i'd be open to adding the option for the
DataFrame(notLazyFrame) case[-][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`[/+]MarcoGorelli commentedon Sep 21, 2026
this came up here plotly/plotly.py#5766
I think that adding
maintain_orderto eagergroup_bywould be good 👍Add TODO pointing at the narwhals maintain_order follow up
Stewyn commentedon Oct 7, 2026
I've started working on this