From 77c10574f58e14f5205abd8e5c7d32f161d6abfe Mon Sep 17 00:00:00 2001 From: ritchie Date: Mon, 25 Nov 2024 13:46:32 +0100 Subject: [PATCH] single query --- polars/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",