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

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

(train.shape, test.shape)

train_X = train.copy()
train_Y = train_X.pop('Transported')

def displayAllCateFeatInfo(df):
    for column in df.columns:
        if df[column].dtype == 'object':
            print('column: {} -> {}, unique values: {}'.format(column, df[column].unique(), df[column].nunique()))
displayAllCateFeatInfo(train_X)