Skip to content

Commit

Permalink
trying again with groups
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Jun 9, 2022
1 parent 9498396 commit 35dbbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,7 @@ def get_groups_and_orders(args, grouper):
groups = {tuple(single_group_name): df}
else:
grouped = df.groupby(grouper, sort=False)
group_indices = grouped.indices
group_indices = grouped.groups
sorted_group_names = [g if len(grouper) != 1 else (g,) for g in group_indices]

for i, col in reversed(list(enumerate(grouper))):
Expand Down

0 comments on commit 35dbbe8

Please sign in to comment.