Linear Regression - Univariate regression - Statsmodels

PHOTO EMBED

Sat Nov 19 2022 19:30:56 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 #pandas #groupby

import statsmodels.formula.api as smf

model1 = smf.ols('review_score ~ wait_time', data=orders).fit()
print(model1.summary())
content_copyCOPY