Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Oct 22, 2019
1 parent d73e34e commit 0ae60ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def make_trace_kwargs(args, trace_spec, g, mapping_labels, sizeref):
result["y"] = trendline[:, 1]
hover_header = "<b>LOWESS trendline</b><br><br>"
elif v == "ols":
fit_results = sm.OLS(y, sm.add_constant(x)).fit()
fit_results = sm.OLS(y.values, sm.add_constant(x.values)).fit()
result["y"] = fit_results.predict()
hover_header = "<b>OLS trendline</b><br>"
hover_header += "%s = %f * %s + %f<br>" % (
Expand Down

0 comments on commit 0ae60ad

Please sign in to comment.