Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
table = pd.pivot_table(data=df,index='category',values='num_orders',aggfunc=np.sum)
table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment