text_plain_output_1.png
import pandas as pd

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')
predict = pd.read_csv('/kaggle/input/spaceship-titanic/test.csv')

train.dtypes.value_counts()

missing_vals_train = pd.DataFrame(train.isna().sum(), columns=['Sum'])
missing_vals_train = missing_vals_train.sort_values(by='Sum', ascending=False)
missing_vals_train = missing_vals_train[missing_vals_train['Sum'] > 0]
missing_vals_train['Percent'] = missing_vals_train['Sum'] / 8693 * 100
missing_vals_train