We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21c96c commit 2f401e0Copy full SHA for 2f401e0
packages/python/plotly/plotly/express/_core.py
@@ -1432,11 +1432,12 @@ def process_dataframe_hierarchy(args):
1432
_check_dataframe_all_leaves(df[path[::-1]])
1433
discrete_color = False
1434
1435
+ new_path = []
1436
for col_name in path:
- series_to_copy = df[col_name]
1437
new_col_name = col_name + "_path_copy"
1438
- path = [new_col_name if x == col_name else x for x in path]
1439
- df[new_col_name] = series_to_copy
+ new_path.append(new_col_name)
+ df[new_col_name] = df[col_name]
1440
+ path = new_path
1441
# ------------ Define aggregation functions --------------------------------
1442
1443
def aggfunc_discrete(x):
0 commit comments