application_vnd.jupyter.stderr_output_1.png
from sklearn import datasets

import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

boston = datasets.load_boston()

bos = pd.DataFrame(boston.data, columns=boston.feature_names)
target = pd.DataFrame(boston.target, columns=['MEDV'])
bos['MEDV'] = target['MEDV']

correlation_matrix = bos.corr().round(2)
plt.figure(figsize=(12, 5))
sns.heatmap(data=correlation_matrix, annot=True)