text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

path = '../input/'
train = pd.read_csv(path + 'train.csv', na_values=-1)
test = pd.read_csv(path + 'test.csv', na_values=-1)

train.head(5).T

cor = train.corr()

train.isnull().sum().sum()

test.isnull().sum().sum()

train_len = train.shape[0]
df = pd.concat([train, test], axis=0)

bin_col = [c for c in df.columns if df[c].nunique() == 2]
len(bin_col)

other_col = [c for c in df.columns if c not in bin_col]
other_col

df[other_col].nunique()