Skip to content

Commit 81e1de4

Browse files
1 parent 19e1b6c commit 81e1de4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def make_trace_kwargs(args, trace_spec, g, mapping_labels, sizeref):
233233
result["y"] = trendline[:, 1]
234234
hover_header = "<b>LOWESS trendline</b><br><br>"
235235
elif v == "ols":
236-
fit_results = sm.OLS(y, sm.add_constant(x)).fit()
236+
fit_results = sm.OLS(y.values, sm.add_constant(x.values)).fit()
237237
result["y"] = fit_results.predict()
238238
hover_header = "<b>OLS trendline</b><br>"
239239
hover_header += "%s = %f * %s + %f<br>" % (

0 commit comments

Comments
 (0)