Skip to content

Commit 5f03e73

Browse files
tweaks to make flake8 happy
1 parent 7483fbb commit 5f03e73

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,8 @@ def _check_dataframe_all_leaves(df):
10151015
null_indices = np.nonzero(null_mask.any(axis=1).values)[0]
10161016
for null_row_index in null_indices:
10171017
row = null_mask.iloc[null_row_index]
1018-
indices = np.nonzero(row.values)[0]
1019-
if not row[indices[0] :].all():
1018+
i = np.nonzero(row.values)[0][0]
1019+
if not row[i:].all():
10201020
raise ValueError(
10211021
"None entries cannot have not-None children",
10221022
df_sorted.iloc[null_row_index],
@@ -1058,6 +1058,7 @@ def process_dataframe_hierarchy(args):
10581058
path = [new_col_name if x == col_name else x for x in path]
10591059
df[new_col_name] = series_to_copy
10601060
# ------------ Define aggregation functions --------------------------------
1061+
10611062
def aggfunc_discrete(x):
10621063
uniques = x.unique()
10631064
if len(uniques) == 1:

0 commit comments

Comments
 (0)