Skip to content

Commit

Permalink
fix dataset snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Dec 6, 2024
1 parent ffb0ce1 commit 71dca18
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/website/docs/general-usage/dataset-access/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ import ibis
items_relation.order_by(ibis.desc("id"), ibis.asc("price")).limit(10)

# group by and aggregate
items_relation.group_by("item_group")
.having(items_table.count() >= 1000)
.aggregate(sum_id=items_table.id.sum())
.df()
items_relation.group_by("item_group").having(items_table.count() >= 1000).aggregate(sum_id=items_table.id.sum()).df()

# subqueries
items_relation.filter(items_table.category.isin(beverage_categories.name)).df()
Expand Down

0 comments on commit 71dca18

Please sign in to comment.