text_plain_output_1.png
import pandas as pd

data = pd.read_csv('/kaggle/input/titanicdataset-traincsv/train.csv')
data

data.count()

alive = data[data['Survived'].eq(1)]['Survived'].value_counts()

round(data[data['Survived'].eq(1)]['Sex'].value_counts().astype(int) * 100 / alive[1], 2)