File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,7 @@ def __init__(
48
48
self ._keys = list (keys )
49
49
self ._grouped = pa .TableGroupBy (self ._df ._native_frame , list (self ._keys ))
50
50
51
- def agg (
52
- self : Self ,
53
- * exprs : ArrowExpr ,
54
- ) -> ArrowDataFrame :
51
+ def agg (self : Self , * exprs : ArrowExpr ) -> ArrowDataFrame :
55
52
for expr in exprs :
56
53
if expr ._output_names is None :
57
54
msg = "group_by.agg"
Original file line number Diff line number Diff line change 9
9
from typing_extensions import Self
10
10
11
11
from narwhals ._duckdb .dataframe import DuckDBLazyFrame
12
- from narwhals ._duckdb .typing import IntoDuckDBExpr
12
+ from narwhals ._duckdb .expr import DuckDBExpr
13
13
14
14
15
15
class DuckDBGroupBy :
@@ -27,7 +27,7 @@ def __init__(
27
27
28
28
def agg (
29
29
self : Self ,
30
- * exprs : IntoDuckDBExpr ,
30
+ * exprs : DuckDBExpr ,
31
31
) -> DuckDBLazyFrame :
32
32
output_names : list [str ] = copy (self ._keys )
33
33
for expr in exprs :
You can’t perform that action at this time.
0 commit comments