Skip to content

Instantly share code, notes, and snippets.

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