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

train_data = pd.read_csv('/kaggle/input/titanic/train.csv')
test_data = pd.read_csv('/kaggle/input/titanic/test.csv')

train_data.isnull().sum()

print('Percertage survived (train_data):', (train_data['Survived'] == True).sum() * 100 / train_data.shape[0], '%')