Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fig = plt.figure(figsize=(10,10))
- sns.distplot(df_bin.loc[df_bin['Survived'] == 1]['Sex'], kde_kws={'label': 'Survived'})
- sns.distplot(df_bin.loc[df_bin['Survived'] == 0]['Sex'], kde_kws={'label': 'Did not survive'})
- Survived Pclass Sex
- 0 0 3 0
- 1 1 1 1
- 2 1 3 1
- 3 1 1 1
- 4 0 3 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement