I need to plot the survival probability of women and men according to their age.
plt.figure(figsize=(20, 8))
sns.histplot(data=train_df, x="Age", hue="Sex", kde=True, multiple="dodge")
plt.title('Count ')
What I've done looks like this
But I want to see something like this (the y-axis is for of survival probability of each bin)
How can I do this?