results = ols_model.fit() n_points = male_df.shape[0] y_output = male_df['childHeight'].values.reshape(n_points, 1) print('Intercept, Slopes : n{}'.format(results.params))