Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Jun 5, 2020
1 parent c21c96c commit 2f401e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/python/plotly/plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,11 +1432,12 @@ def process_dataframe_hierarchy(args):
_check_dataframe_all_leaves(df[path[::-1]])
discrete_color = False

new_path = []
for col_name in path:
series_to_copy = df[col_name]
new_col_name = col_name + "_path_copy"
path = [new_col_name if x == col_name else x for x in path]
df[new_col_name] = series_to_copy
new_path.append(new_col_name)
df[new_col_name] = df[col_name]
path = new_path
# ------------ Define aggregation functions --------------------------------

def aggfunc_discrete(x):
Expand Down

0 comments on commit 2f401e0

Please sign in to comment.