Skip to content

Commit

Permalink
chore: simplify duckdb group-by (#1911)
Browse files Browse the repository at this point in the history
simplify ducks
  • Loading branch information
MarcoGorelli authored Feb 2, 2025
1 parent d48b8a3 commit 5943b3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions narwhals/_duckdb/group_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,5 @@ def agg(self: Self, *exprs: DuckDBExpr) -> DuckDBLazyFrame:
)

return self._compliant_frame._from_native_frame(
self._compliant_frame._native_frame.aggregate(
agg_columns, group_expr=",".join(f'"{key}"' for key in self._keys)
)
self._compliant_frame._native_frame.aggregate(agg_columns)
)

0 comments on commit 5943b3a

Please sign in to comment.