I am currently working on a project where I am using machine learning to create a model that predicts which passengers survived the Titanic shipwreck.
I want to find the relationship between the gender of the person and their survival rate. I have one-hot encoded the gender column for the same.
So now I have 3 columns- Female( values 0 or 1), Male( values 0 or 1) and Survived( values 0 or 1). Can you suggest me a suitable graph to visualize and compare their relationship.
I tried scatter plot, but it wasn't helpful.
Firstly, convert the data as lists,