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)
sub = pd.read_csv('/kaggle/input/30-days-of-ml/sample_submission.csv')

y = train.target
X_all = pd.get_dummies(train.drop(['target'], axis=1).append(test)).copy()
X, X_test = (X_all[:300000], X_all[300000:])
print(X.shape, y.shape, X_test.shape)