From 1d965c7861879f783356525ddc718109c10a596e Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Wed, 18 Sep 2024 12:03:54 -0400 Subject: [PATCH] docs(datafusion): add imdb live demo reference to end of presentation (#10162) --- .../datafusion-meetup-nyc-2024/talk.qmd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/presentations/datafusion-meetup-nyc-2024/talk.qmd b/docs/presentations/datafusion-meetup-nyc-2024/talk.qmd index f089c6b594eb..7a766d8b5bc3 100644 --- a/docs/presentations/datafusion-meetup-nyc-2024/talk.qmd +++ b/docs/presentations/datafusion-meetup-nyc-2024/talk.qmd @@ -369,6 +369,24 @@ Nope. You should use Ibis _with_ `X`. ::: {.panel-tabset} +### IMDB Top 10 + +```python +import ibis + +con = ibis.datafusion.connect() +ibis.set_backend(con) + +ratings = ibis.examples.imdb_title_ratings.fetch() +basics = ibis.examples.imdb_title_basics.fetch() + +basics.filter(basics.titleType == "movie", basics.isAdult == 0).join( + ratings, "tconst" +).filter(ratings.numVotes > 100_000).order_by(ratings.averageRating.desc()).select( + "primaryTitle", "averageRating" +).limit(10) +``` + ### Pandas PyPI ```python