Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Sep 5, 2020
1 parent 3f41953 commit c9ba8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
elif attr_name == "custom_data":
# here we store a data frame in customdata, and it's serialized
# as a list of row lists, which is what we want
trace_patch["customdata"] = np.array(trace_data[attr_value])
trace_patch["customdata"] = trace_data[attr_value]
elif attr_name == "hover_name":
if trace_spec.constructor not in [
go.Histogram,
Expand Down Expand Up @@ -381,7 +381,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):

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

0 comments on commit c9ba8aa

Please sign in to comment.