plotly.express.get_trendline_results¶
-
plotly.express.get_trendline_results(fig)¶ Extracts fit statistics for trendlines (when applied to figures generated with the
trendlineargument set to"ols").- Parameters
fig – the output of a
plotly.expresscharting call- Returns
A
pandas.DataFramewith a column “px_fit_results” containing thestatsmodelsresults objects, along with columns identifying the subset of the data the trendline was fit on.
