text_html_output_1.png
import matplotlib.pyplot as plt

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

import seaborn as sn

df = pd.read_csv('../input/hmeq-data/hmeq.csv')

df.shape

df.sample(30)

df.describe().T

df.dropna(thresh=8, inplace=True)

df.REASON.fillna('DebtCon', inplace=True)
df.JOB.fillna('Other', inplace=True)

for col in df.columns:
    if df[col].dtype == 'object':
        df[col] = df[col].astype('category').cat.codes

import seaborn as sn
import matplotlib.pyplot as plt
plt.figure(figsize=(18, 18))
corrMatrix = df[df['DEBTINC'].notnull()].corr()
sn.heatmap(corrMatrix, annot=True)
plt.show()