Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Commit 7bcd6a0

Browse files
committed
Fix notebooks for ibis 6.1
1 parent 88a3bcc commit 7bcd6a0

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

examples/clickhouse-hackernews.ipynb

+7-5
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
"metadata": {},
4646
"outputs": [],
4747
"source": [
48-
"con = ibis.clickhouse.connect(\n",
49-
" host=\"play.clickhouse.com\", port=9440, user=\"play\", secure=True\n",
50-
")"
48+
"con = ibis.connect(\"clickhouse://[email protected]:443\")"
5149
]
5250
},
5351
{
@@ -160,7 +158,11 @@
160158
"outputs": [],
161159
"source": [
162160
"top_commenters = (\n",
163-
" t.filter(_.by != \"\").group_by(\"by\").count().order_by(ibis.desc(\"count\")).limit(5)\n",
161+
" t.filter(_.by != \"\")\n",
162+
" .group_by(\"by\")\n",
163+
" .agg(count=_.count())\n",
164+
" .order_by(ibis.desc(\"count\"))\n",
165+
" .limit(5)\n",
164166
")\n",
165167
"\n",
166168
"top_commenters"
@@ -251,7 +253,7 @@
251253
"name": "python",
252254
"nbconvert_exporter": "python",
253255
"pygments_lexer": "ipython3",
254-
"version": "3.10.10"
256+
"version": "3.10.12"
255257
}
256258
},
257259
"nbformat": 4,

tutorial/04-More-Value-Expressions.ipynb

+2-6
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,7 @@
470470
"metadata": {},
471471
"outputs": [],
472472
"source": [
473-
"independence[\n",
474-
" independence.independence_date.min(),\n",
475-
" independence.independence_date.max(),\n",
476-
" independence.count().name(\"nrows\"),\n",
477-
"].distinct()"
473+
"independence.independence_date.max()"
478474
]
479475
},
480476
{
@@ -515,7 +511,7 @@
515511
"name": "python",
516512
"nbconvert_exporter": "python",
517513
"pygments_lexer": "ipython3",
518-
"version": "3.10.8"
514+
"version": "3.10.12"
519515
}
520516
},
521517
"nbformat": 4,

0 commit comments

Comments
 (0)