linear_fit function

Perform a linear regression on a data frame