fix(sql): across() now currently sets the OVER clause when LazyTbl is grouped.
fix(pandas): across() now correctly handles aggregates inside a mutate. Previously, it was screwing up the placement of the result by assigning using the index, and not broadcasting.
from siuba.data import cars
from siuba import across, Fx, mutate, head
cars.groupby("cyl") >> mutate(across(_[_.hp, _.mpg], Fx.mean())) >> head()
This PR provides two fixes for
across()
across()
now currently sets the OVER clause when LazyTbl is grouped.across()
now correctly handles aggregates inside a mutate. Previously, it was screwing up the placement of the result by assigning using the index, and not broadcasting.