Skip to content

Commit

Permalink
fixed average per order to use revenue
Browse files Browse the repository at this point in the history
  • Loading branch information
skgurura committed Nov 14, 2017
1 parent 3da2d91 commit e625fb3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,10 @@
}
],
"source": [
"chipo['revenue'] = chipo['quantity']* chipo['item_price']\n",
"order_grouped = chipo.groupby(by=['order_id']).sum()\n",
"order_grouped.mean()['item_price']\n",
"order_grouped.mean()['revenue']\n",
"\n",
"\n",
"# Or \n",
"\n",
Expand Down

0 comments on commit e625fb3

Please sign in to comment.