text_plain_output_1.png
import pandas as pd

test = pd.read_csv('/kaggle/input/spaceship-titanic/test.csv')
test_pass_id = test.PassengerId.copy()

train = pd.read_csv('/kaggle/input/spaceship-titanic/train.csv')
train_pass_id = train.PassengerId.copy()

X = train.drop(columns='Transported')
y = train[['Transported']]

df = pd.concat([X, test], ignore_index=True)

nan_inicial = df.isna().sum()
nan_inicial

df.head()