text_html_output_1.png
from sklearn.model_selection import train_test_split

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('/kaggle/input/spaceship-titanic/train.csv')

X = df.drop('Transported', 1)
y = df['Transported'].apply(int)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25)