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

PATH = '../input/titanic/'

df_train = pd.read_csv(f'{PATH}/train.csv', low_memory=False)
df_test = pd.read_csv(f'{PATH}/test.csv', low_memory=False)

df_train.dtypes

label = df_train['Survived']

label.unique()

label.value_counts().plot.pie(autopct='%1.2f%%')