Recommended equivalent to map / broadcast on GroupedDataFrame

If I understood the requirement correctly, you could try the following form

combine(f1,df1g)

if you want to rename the new column, you could use a function like this

f2(df::AbstractDataFrame) = (;z=sum(df[!, :x1]))
2 Likes