Datanic is a data science project to share my Pandas and Matplotlib skills. I'm a huge fan of the Titanic (Olympic) Story. So I wanted to use a Titanic dataset to see which passengers were the most likely to get rescued.
- Firstly I needed to clean the Data. For that, I dropped all the data that didn't have any impact on the outcome.
- Then I removed all the passengers with unknown ages and passengers that didn't embark
- Lastly I printed the outcome by grouping people by sex and passenger class.
Then if we start the programm, it outputs this:
As we can see women were much more likely to get rescued. 96% for women in first class, 47% for women in third class, and 35% for men in first class. But we can also remark something interesting: Men were more likely to get rescued if they were in third class rather than second class (17% vs 15%)
