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]))
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]))