Skip to content

Instantly share code, notes, and snippets.

@DiogoRibeiro7
Last active April 15, 2019 17:33
Show Gist options
  • Save DiogoRibeiro7/ba6c8b57fc44a5639ede2b93ae3eb68e to your computer and use it in GitHub Desktop.
Save DiogoRibeiro7/ba6c8b57fc44a5639ede2b93ae3eb68e to your computer and use it in GitHub Desktop.
class_sex_grouping = titanic_df.groupby(['pclass','sex']).mean()
class_sex_grouping
class_sex_grouping['survived'].plot.bar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment