Skip to content

Commit

Permalink
single query
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 25, 2024
1 parent 1b5630d commit 77c1057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polars/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"Q2",
"SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits;",
lambda x: (x["AdvEngineID"].sum(), x.shape[0], x["ResolutionWidth"].mean()),
lambda x: (x.select(pl.col("advengineid").sum()).collect().item(), x.select(pl.len()).collect().item(), x.select(pl.col("advengineid").mean()).collect().item()),
lambda x: x.select(pl.col("advengineid").sum(), pl.len(), pl.col("advengineid").mean()).collect().rows()[0],
),
(
"Q3",
Expand Down

0 comments on commit 77c1057

Please sign in to comment.