Skip to content

Commit f4b64cb

Browse files
committed
remove check for non-leaf node
fixes plotly#4774 and plotly#3589
1 parent 673c19c commit f4b64cb

File tree

1 file changed

+0
-9
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+0
-9
lines changed

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

-9
Original file line numberDiff line numberDiff line change
@@ -1633,15 +1633,6 @@ def _check_dataframe_all_leaves(df):
16331633
"None entries cannot have not-None children",
16341634
df_sorted.iloc[null_row_index],
16351635
)
1636-
df_sorted[null_mask] = ""
1637-
row_strings = list(df_sorted.apply(lambda x: "".join(x), axis=1))
1638-
for i, row in enumerate(row_strings[:-1]):
1639-
if row_strings[i + 1] in row and (i + 1) in null_indices:
1640-
raise ValueError(
1641-
"Non-leaves rows are not permitted in the dataframe \n",
1642-
df_sorted.iloc[i + 1],
1643-
"is not a leaf.",
1644-
)
16451636

16461637

16471638
def process_dataframe_hierarchy(args):

0 commit comments

Comments
 (0)