text_plain_output_1.png
import pandas as pd

df_train = pd.read_csv('../input/train.csv')
df_train['dataset'] = 'train'
df_test = pd.read_csv('../input/test.csv')
df_test['dataset'] = 'test'
df = pd.concat([df_train, df_test], sort=True, copy=False)

df_train.nunique().min()

num_features = df_train.select_dtypes(['float64', 'int64']).columns.tolist()
cat_features = df_train.select_dtypes(['object']).columns.tolist()

num_features.remove('PassengerId')
num_features = sorted(num_features)
num_features