text_plain_output_1.png
import pandas as pd

train = pd.read_csv('../input/30-days-of-ml/train.csv', index_col=0)
test = pd.read_csv('../input/30-days-of-ml/test.csv', index_col=0)
y = train['target']
features = train.drop(['target'], axis=1)
X = features.copy()
print(X.shape)
X_test = test.copy()
print(X_test.shape)
categorical_cols = [cname for cname in features.columns if features[cname].dtype == 'object']
numerical_cols = [cname for cname in features.columns if features[cname].dtype in ['int64', 'float64']]
my_cols = categorical_cols + numerical_cols