Skip to content

Commit bfaf9b0

Browse files
committed
A few tiny fixups
Some formatting fixups found while running through the tutorial on codespaces.
1 parent de2d947 commit bfaf9b0

5 files changed

+30
-11
lines changed

01 - Getting Started.ipynb

+16-6
Original file line numberDiff line numberDiff line change
@@ -947,18 +947,28 @@
947947
"### Exercise 4\n",
948948
"\n",
949949
"Add a new column to the `penguins` table with the mean mass of penguins found\n",
950-
"on that island.\n",
951-
"\n",
952-
"```python\n",
950+
"on that island."
951+
]
952+
},
953+
{
954+
"cell_type": "code",
955+
"metadata": {},
956+
"source": [
953957
"mean_mass_per_island = (\n",
954958
" penguins\n",
955959
" .group_by(\"island\")\n",
956960
" .agg(island_mean_mass=penguins.body_mass_g.mean())\n",
957961
")\n",
958962
"\n",
959-
"penguins.join(...) # what goes here?\n",
960-
"```\n",
961-
"\n",
963+
"penguins.join(...) # what goes here?"
964+
],
965+
"execution_count": null,
966+
"outputs": []
967+
},
968+
{
969+
"cell_type": "markdown",
970+
"metadata": {},
971+
"source": [
962972
"#### Solution"
963973
]
964974
},

03 - Switching Backends.ipynb

+6-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
"source": [
7676
"basics = con.read_parquet(\n",
7777
" \"data/imdb/imdb_title_basics_sample_5.parquet\", table_name=\"imdb_title_basics\"\n",
78-
")"
78+
")\n",
79+
"\n",
80+
"basics"
7981
],
8082
"execution_count": null,
8183
"outputs": []
@@ -86,7 +88,9 @@
8688
"source": [
8789
"ratings = con.read_parquet(\n",
8890
" \"data/imdb/imdb_title_ratings.parquet\", table_name=\"imdb_title_ratings\"\n",
89-
")"
91+
")\n",
92+
"\n",
93+
"ratings"
9094
],
9195
"execution_count": null,
9296
"outputs": []

quarto/01 - Getting Started.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ left.join(right, "key_column_name")
493493
Add a new column to the `penguins` table with the mean mass of penguins found
494494
on that island.
495495

496-
```python
496+
```{python}
497497
mean_mass_per_island = (
498498
penguins
499499
.group_by("island")

quarto/03 - Switching Backends.qmd

+4
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ con = ibis.duckdb.connect()
5151
basics = con.read_parquet(
5252
"data/imdb/imdb_title_basics_sample_5.parquet", table_name="imdb_title_basics"
5353
)
54+
55+
basics
5456
```
5557

5658
```{python}
5759
ratings = con.read_parquet(
5860
"data/imdb/imdb_title_ratings.parquet", table_name="imdb_title_ratings"
5961
)
62+
63+
ratings
6064
```
6165

6266
## Exercises

solutions/nb01_ex04.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
(
1+
mean_mass_per_island = (
22
penguins
33
.group_by("island")
44
.agg(island_mean_mass=penguins.body_mass_g.mean())
5-
.join(penguins, "island")
65
)
6+
7+
penguins.join(mean_mass_per_island, "island")

0 commit comments

Comments
 (0)