importnumpyasnpimportpandasaspdimportsklearnimportstatsmodels.apiassmfromsklearn.datasetsimportload_bostonboston=load_boston()print('Keys')print(boston.keys())# Print the feature names and the descriptionprint('Feature Names')print(boston.feature_names)print()print('Description')print(boston.DESCR)# Print the shape of the data and the targetprint('Data Shape')print(boston.data.shape)print()print('Target Shape')print(boston.target.shape)# Create a dataframe of the data and add the Median Value targetboston_dataframe=pd.DataFrame(boston.data)boston_dataframe.columns=boston.feature_namesboston_dataframe['MEDV']=boston.targetprint('Dataframe Head')print(boston_dataframe.head())# Print descriptivesprint(boston_dataframe.describe())# Ordinary Least Squares Modelols=sm.OLS(endog=boston.target,exog=boston.data).fit()ols.summary()