From 484283c6485a336179160d4cad6b43eedcda4418 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Sat, 11 Nov 2023 17:43:43 -0800 Subject: [PATCH 1/2] working on ibis section: fixed bug from new ibis version --- source/reading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reading.md b/source/reading.md index 9415f41b..735d364b 100755 --- a/source/reading.md +++ b/source/reading.md @@ -676,7 +676,7 @@ canlang_table Although it looks like we might have obtained the whole data frame from the database, we didn't! It's a *reference*; the data is still stored only in the SQLite database. The `canlang_table` object -is an `AlchemyTable` (`ibis` is using `sqlalchemy` under the hood!), which, when printed, tells +is a `DatabaseTable`, which, when printed, tells you which columns are available in the table. But unlike a usual `pandas` data frame, we do not immediately know how many rows are in the table. In order to find out how many rows there are, we have to send an SQL *query* (i.e., command) to the data base. From 9153b68425839f33537d2821812714d2afa2cb68 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Sat, 11 Nov 2023 17:47:24 -0800 Subject: [PATCH 2/2] minor wordsmithing --- source/reading.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/reading.md b/source/reading.md index 735d364b..284398c2 100755 --- a/source/reading.md +++ b/source/reading.md @@ -721,8 +721,8 @@ response for us. So `ibis` does all the hard work of translating from Python to we can just stick with Python! The `ibis` package provides lots of `pandas`-like tools for working with database tables. -For example, we can look at the first few rows of the table by using the `head` function---and -we won't forget to `execute` to see the result! +For example, we can look at the first few rows of the table by using the `head` function, +followed by `execute` to retrieve the response. ```{index} database; head, ibis; ```