From a5e8f9b5f86a2ca05f8e33bce236b53abfcd2329 Mon Sep 17 00:00:00 2001 From: Andrew Arbogast <10776890+ndrwrbgs@users.noreply.github.com> Date: Mon, 8 Jul 2024 23:34:54 -0500 Subject: [PATCH] Fix typo in error message formatting in process_args_into_dataframe --- packages/python/plotly/plotly/express/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index 36c57055331..d7c6ad23cdc 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -1215,7 +1215,7 @@ def process_args_into_dataframe(args, wide_mode, var_name, value_name): raise ValueError( "All arguments should have the same length. " "The length of column argument `df[%s]` is %d, whereas the " - "length of previously-processed arguments %s is %d" + "length of previously-processed arguments %s is %d" % ( field, len(df_input[argument]), @@ -1253,7 +1253,7 @@ def process_args_into_dataframe(args, wide_mode, var_name, value_name): raise ValueError( "All arguments should have the same length. " "The length of argument `%s` is %d, whereas the " - "length of previously-processed arguments %s is %d" + "length of previously-processed arguments %s is %d" % (field, len(argument), str(list(df_output.keys())), length) ) df_output[str(col_name)] = to_unindexed_series(argument, str(col_name))