I am trying to solve kaggle's titanic competition.
I need to generate a plot where X is representing Sex having male and female as values. And Y as two variables 0 and 1.
From this, I need to see how many males/females survived.
I am trying the following:
sns.barplot(x='Sex', y='Survived', data=train)
But I am getting a plot representing percentage of each male and female:
Any idea how to create stacked bar using seaborn?
I need to plot 2 features, each of them having 2 values.
