text_plain_output_1.png image_output_1.png
import pandas as pd

train_df = pd.read_csv('../input/titanic/titanic_train.csv', index_col='PassengerId')

train_df.isnull().sum()

train_df = train_df.drop('Cabin', axis=1).dropna()

train_df['Survived'].value_counts(normalize=True).plot(kind='bar', label='Выжившие')