Skip to content

Commit 3697d41

Browse files
committed
wip: remove part of the bug
1 parent 3ef3764 commit 3697d41

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

packages/python/plotly/plotly/express/_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,9 @@ def aggfunc_continuous(x):
15461546
for col in cols: # for hover_data, custom_data etc.
15471547
if col not in agg_f:
15481548
agg_f[col] = aggfunc_discrete
1549+
# Avoid collisions with reserved names - columns in the path have been copied already
1550+
cols = list(set(cols) - set(["labels", "parent", "id"]))
15491551
# ----------------------------------------------------------------------------
1550-
15511552
df_all_trees = pd.DataFrame(columns=["labels", "parent", "id"] + cols)
15521553
# Set column type here (useful for continuous vs discrete colorscale)
15531554
for col in cols:

0 commit comments

Comments
 (0)