Ordinary Least Squares, P Value, Regression, Statsmodels.
pd.options.display.float_format = '{:,.1f}'.format df.describe() In the whole data set we have 442 observations. The maximum value of Y is 346 and the median is 140.5. The quantile 25 for Age is 38.2 and the quantile 75 is 59. Split to train and test Let’s split the dataset to train and test sets :