Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ef18bb

Browse filesBrowse files
Fix for pandas pattern
1 parent 6c5cfe2 commit 2ef18bb
Copy full SHA for 2ef18bb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed
Filter options
  • packages/python/plotly/plotly/express
Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed

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

Copy file name to clipboardExpand all lines: packages/python/plotly/plotly/express/_core.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,11 +1069,8 @@ def process_args_into_dataframe(args, wide_mode, var_name, value_name):
10691069
constants[col_name] = argument.value
10701070
else:
10711071
ranges.append(col_name)
1072-
# ----------------- argument is a col name ----------------------
1073-
elif isinstance(argument, str) or isinstance(
1074-
argument, int
1075-
): # just a column name given as str or int
1076-
1072+
# ----------------- argument is likely a col name ----------------------
1073+
elif isinstance(argument, str) or not hasattr(argument, "__len__"):
10771074
if (
10781075
field_name == "hover_data"
10791076
and hover_data_is_dict
@@ -1135,7 +1132,7 @@ def process_args_into_dataframe(args, wide_mode, var_name, value_name):
11351132
else:
11361133
col_name = str(argument)
11371134
df_output[col_name] = df_input[argument].values
1138-
# ----------------- argument is a column / array / list.... -------
1135+
# ----------------- argument is likely a column / array / list.... -------
11391136
else:
11401137
if df_provided and hasattr(argument, "name"):
11411138
if argument is df_input.index:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.