From 476db55736c202a17188b34f6c769adc67065ba9 Mon Sep 17 00:00:00 2001 From: FBruzzesi Date: Fri, 10 Jan 2025 11:42:03 +0100 Subject: [PATCH] avoid nw.all() with reductions --- tests/expr_and_series/n_unique_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expr_and_series/n_unique_test.py b/tests/expr_and_series/n_unique_test.py index 90bffb04b..1bcbe89fd 100644 --- a/tests/expr_and_series/n_unique_test.py +++ b/tests/expr_and_series/n_unique_test.py @@ -13,7 +13,7 @@ def test_n_unique(constructor: Constructor) -> None: df = nw.from_native(constructor(data)) - result = df.select(nw.all().n_unique()) + result = df.select(nw.col("a", "b").n_unique()) expected = {"a": [3], "b": [4]} assert_equal_data(result, expected)