ols_model_forward = sm.ols(formula = 'childHeight ~ father + mother + mother_sqr + 1', data=male_df) results = ols_model_forward.fit() n_points = male_df.shape[0] y_output = male_df['childHeight'].values.reshape(n_points, 1)