Skip to content

Commit c9ba8aa

Browse files
more cleanup
1 parent 3f41953 commit c9ba8aa

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
348348
elif attr_name == "custom_data":
349349
# here we store a data frame in customdata, and it's serialized
350350
# as a list of row lists, which is what we want
351-
trace_patch["customdata"] = np.array(trace_data[attr_value])
351+
trace_patch["customdata"] = trace_data[attr_value]
352352
elif attr_name == "hover_name":
353353
if trace_spec.constructor not in [
354354
go.Histogram,
@@ -381,7 +381,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
381381

382382
# here we store a data frame in customdata, and it's serialized
383383
# as a list of row lists, which is what we want
384-
trace_patch["customdata"] = np.array(trace_data[customdata_cols])
384+
trace_patch["customdata"] = trace_data[customdata_cols]
385385
elif attr_name == "color":
386386
if trace_spec.constructor in [go.Choropleth, go.Choroplethmapbox]:
387387
trace_patch["z"] = trace_data[attr_value]

0 commit comments

Comments
 (0)