Skip to content

Commit d9a2e67

Browse files
Fix example
1 parent 03ec1c4 commit d9a2e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

00_overview.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"source": [
5555
"ddf = dd.read_parquet(\n",
5656
" \"s3://coiled-data/uber/\",\n",
57-
" columns=[\"passenger_count\", \"tip_amount\"],\n",
57+
" columns=[\"tips\"],\n",
5858
" storage_options={\"anon\": True},\n",
5959
")"
6060
]
@@ -65,7 +65,7 @@
6565
"metadata": {},
6666
"outputs": [],
6767
"source": [
68-
"result = ddf.groupby(\"passenger_count\").tip_amount.mean().compute()\n",
68+
"result = ddf[\"tips\"][ddf[\"tips\"] > 0].mean().compute()\n",
6969
"result"
7070
]
7171
},

0 commit comments

Comments
 (0)