text_plain_output_1.png
from sklearn.datasets import load_boston

import matplotlib.pyplot as plt

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

from sklearn.datasets import load_boston
data = load_boston()

df = pd.DataFrame(data.data, columns=data.feature_names)

df['MEDV'] = data.target

plt.figure(figsize = (20, 15))
plotnumber = 1

for column in df:
    if plotnumber <= 14:
        ax = plt.subplot(3, 5, plotnumber)
        sns.distplot(df[column])
        plt.xlabel(column, fontsize = 15)
        
    plotnumber += 1
    
plt.tight_layout()
plt.show()

plt.figure(figsize=(20, 15))
plotnumber = 1
for column in df:
    if plotnumber <= 14:
        ax = plt.subplot(3, 5, plotnumber)
        sns.scatterplot(x=df['MEDV'], y=df[column])
    plotnumber += 1
plt.tight_layout()
plt.show()