Skip to content

Commit 3f41953

Browse files
clean up
1 parent fa7b6df commit 3f41953

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
283283

284284
# sorting is bad but trace_specs with "trendline" have no other attrs
285285
sorted_trace_data = trace_data.sort_values(by=args["x"])
286-
y = np.array(sorted_trace_data[args["y"]].values)
287-
x = np.array(sorted_trace_data[args["x"]].values)
286+
y = sorted_trace_data[args["y"]].values
287+
x = sorted_trace_data[args["x"]].values
288288

289289
if x.dtype.type == np.datetime64:
290290
x = x.astype(int) / 10 ** 9 # convert to unix epoch seconds

Diff for: packages/python/plotly/plotly/tests/test_core/test_px/test_px_hover.py

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def test_sunburst_hoverdict_color():
165165
assert "color" in fig.data[0].hovertemplate
166166

167167

168-
@pytest.mark.xfail()
169168
def test_date_in_hover():
170169
df = pd.DataFrame({"date": ["2015-04-04 19:31:30+1:00"], "value": [3]})
171170
df["date"] = pd.to_datetime(df["date"])

0 commit comments

Comments
 (0)