Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. fig = plt.figure(figsize=(10,10))
  2. sns.distplot(df_bin.loc[df_bin['Survived'] == 1]['Sex'], kde_kws={'label': 'Survived'})
  3. sns.distplot(df_bin.loc[df_bin['Survived'] == 0]['Sex'], kde_kws={'label': 'Did not survive'})
  4.  
  5. Survived Pclass Sex
  6. 0 0 3 0
  7. 1 1 1 1
  8. 2 1 3 1
  9. 3 1 1 1
  10. 4 0 3 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement