Skip to content

Commit 0f155ec

Browse files
refactor pandas df.append to pd.concat in _core
1 parent 4660998 commit 0f155ec

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,9 @@ def aggfunc_continuous(x):
16341634
df_tree["parent"] = df_tree["parent"].str.rstrip("/")
16351635
if cols:
16361636
df_tree[cols] = dfg[cols]
1637-
df_all_trees = df_all_trees.append(df_tree, ignore_index=True)
1637+
df_all_trees_old = df_all_trees.append(df_tree, ignore_index=True)
1638+
df_all_trees = pd.concat([df_all_trees, df_tree], ignore_index=True)
1639+
assert df_all_trees.equals(df_all_trees_old)
16381640

16391641
# we want to make sure than (?) is the first color of the sequence
16401642
if args["color"] and discrete_color:

0 commit comments

Comments
 (0)