Skip to content

Commit d4955b1

Browse files
refactor: reuse to_unindexed_series
1 parent f028571 commit d4955b1

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,12 +1272,12 @@ def process_args_into_dataframe(args, wide_mode, var_name, value_name):
12721272

12731273
length = len(df_output[next(iter(df_output))]) if len(df_output) else 0
12741274
df_output.update(
1275-
{col_name: pd.Series(range(length), name=col_name) for col_name in ranges}
1275+
{col_name: to_unindexed_series(range(length), col_name) for col_name in ranges}
12761276
)
12771277
df_output.update(
12781278
{
12791279
# constant is single value. repeat by len to avoid creating NaN on concating
1280-
col_name: pd.Series([constants[col_name]] * length, name=col_name)
1280+
col_name: to_unindexed_series([constants[col_name]] * length, col_name)
12811281
for col_name in constants
12821282
}
12831283
)

0 commit comments

Comments
 (0)