We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef3764 commit 3697d41Copy full SHA for 3697d41
packages/python/plotly/plotly/express/_core.py
@@ -1546,8 +1546,9 @@ def aggfunc_continuous(x):
1546
for col in cols: # for hover_data, custom_data etc.
1547
if col not in agg_f:
1548
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"]))
1551
# ----------------------------------------------------------------------------
-
1552
df_all_trees = pd.DataFrame(columns=["labels", "parent", "id"] + cols)
1553
# Set column type here (useful for continuous vs discrete colorscale)
1554
for col in cols:
0 commit comments