Skip to content

Instantly share code, notes, and snippets.

@anbento0490
Last active May 2, 2020 08:12
Show Gist options
  • Save anbento0490/77579b515ec3e7985b7f2f6c26c197a2 to your computer and use it in GitHub Desktop.
Save anbento0490/77579b515ec3e7985b7f2f6c26c197a2 to your computer and use it in GitHub Desktop.
print(orders.groupby('Customer ID')['Order ID'].count())
orders.groupby('Customer ID')['Amount Paid (£)'].sum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment