diff --git a/docs/website/docs/general-usage/dataset-access/dataset.md b/docs/website/docs/general-usage/dataset-access/dataset.md index dce3d58f9b..b2e3f03d4d 100644 --- a/docs/website/docs/general-usage/dataset-access/dataset.md +++ b/docs/website/docs/general-usage/dataset-access/dataset.md @@ -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()