Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Sep 5, 2020
1 parent fa7b6df commit 3f41953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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 @@ -283,8 +283,8 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):

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

if x.dtype.type == np.datetime64:
x = x.astype(int) / 10 ** 9 # convert to unix epoch seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_sunburst_hoverdict_color():
assert "color" in fig.data[0].hovertemplate


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

0 comments on commit 3f41953

Please sign in to comment.