Skip to content

Instantly share code, notes, and snippets.

@ericness
Created August 19, 2018 22:37
Show Gist options
  • Save ericness/663cf77a92595af346a0367ad06f10c1 to your computer and use it in GitHub Desktop.
Save ericness/663cf77a92595af346a0367ad06f10c1 to your computer and use it in GitHub Desktop.
Sum order amounts by customer and order date.
daily_orders = orders.groupby(['customer', 'order_date']).sum()
print(daily_orders)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment