Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 16, 2020 18:53
Show Gist options
  • Save aniruddha27/fcf43d3ac6a1e9806601d99dd8c05720 to your computer and use it in GitHub Desktop.
Save aniruddha27/fcf43d3ac6a1e9806601d99dd8c05720 to your computer and use it in GitHub Desktop.
#display null values
table = pd.pivot_table(df,index=['Sex','Survived','Pclass'],columns=['Embarked'],values=['Age'],aggfunc=np.mean)
table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment