Skip to content

Commit 4dfcaed

Browse files
committed
refactor: replace ensure_expr with ensure_expr_list for aggregation expressions
1 parent 4b4aa1f commit 4dfcaed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/datafusion/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def aggregate(
539539
)
540540

541541
group_by_exprs = expr_list_to_raw_expr_list(group_by_list)
542-
aggs_exprs = [ensure_expr(agg) for agg in aggs_list]
542+
aggs_exprs = ensure_expr_list(aggs_list)
543543
return DataFrame(self.df.aggregate(group_by_exprs, aggs_exprs))
544544

545545
def sort(self, *exprs: SortKey) -> DataFrame:

0 commit comments

Comments
 (0)