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

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)

print('INFO     : ', df.info())
print('Rows     : ', df.shape[0])
print('Columns  : ', df.shape[1])
print('\nFeatures : \n', df.columns.tolist())
print('\nMissing values :  ', df.isnull().sum().values.sum())
print('\nUnique values :  \n', df.nunique())
print('\nPorcentagem Missing: \n', df.isna().mean().round(4) * 100)