Skip to content

Commit 35dbbe8

Browse files
trying again with groups
1 parent 9498396 commit 35dbbe8

File tree

1 file changed

+1
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+1
-1
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ def get_groups_and_orders(args, grouper):
19391939
groups = {tuple(single_group_name): df}
19401940
else:
19411941
grouped = df.groupby(grouper, sort=False)
1942-
group_indices = grouped.indices
1942+
group_indices = grouped.groups
19431943
sorted_group_names = [g if len(grouper) != 1 else (g,) for g in group_indices]
19441944

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

0 commit comments

Comments
 (0)