diff --git a/polars/query.py b/polars/query.py index 269463acf..75eb3d8c6 100755 --- a/polars/query.py +++ b/polars/query.py @@ -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",