I calculated and found linear regression parameters of two columns of my data frame by doing
Answer_trial= numpy.polyfit(table.Column1,table. Column2, 1)