# fit linear regression model ols_model = sm.ols(formula = 'y ~ x', data=data_df) results = ols_model.fit()