Correlation Heatmaps

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

%matplotlib inline

Below, we use pandas to read and display data from a csv source

housing_data = pd.read_csv('housing_data.csv')
housing_data.head()
lot_area firstfloor_sqft living_area bath garage_area price
0 8450 856 1710 2 548 208500
1 9600 1262 1262 2 460 181500
2 11250 920 1786 2 608 223500
3 9550 961 1717 1 642 140000
4 14260 1145 2198 2 836 250000

Rendering Correlation Heatmap

plt.figure(figsize=(10,8))
sns.heatmap(housing_data.corr(), annot=True, square=True, cmap="YlGnBu")
plt.title('Housing Data Correlation Plot')
Correlation Heatmap