# coefficients of line of best fit m = linear_model.coef_[0] b = linear_model.intercept_ print('m = {}'.format(m[0])) print('b = {}'.format(b[0]))