Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 16, 2020 18:48
Show Gist options
  • Save aniruddha27/e0e213a47a8841e38e32447ca3faf136 to your computer and use it in GitHub Desktop.
Save aniruddha27/e0e213a47a8841e38e32447ca3faf136 to your computer and use it in GitHub Desktop.
#multiple indexes
table = pd.pivot_table(df,index=['Sex','Pclass'])
table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment