text_plain_output_1.png
import numpy as np

import pandas as pd

train = pd.read_csv('../input/train.csv')
test = pd.read_csv('../input/test.csv')

np.array(list(zip(train.Id, train.columns)))

train.columns[train.isnull().any()].tolist()

test.columns[test.isnull().any()].tolist()

trainNum = train.select_dtypes(include=[np.number])
trainCat = train.select_dtypes(include=[object])
testNum = test.select_dtypes(include=[np.number])
testCat = test.select_dtypes(include=[object])

trainNum.columns[trainNum.isnull().any()].tolist()

trainNum['GarageYrBlt'].fillna(trainNum['GarageYrBlt'].value_counts().idxmax(), inplace=True)