Open deanm0000 opened 10 months ago
It seems like the eager version is implemented differently, and limited to string tye only in the grouping:
pub fn group_by_map_groups(
&self,
by: Vec<&str>,
lambda: PyObject,
maintain_order: bool,
) -> PyResult<Self>
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of Polars.
Reproducible example
But the gotcha is if the expression in the group_by makes a change then those changes aren't visible to the function such as
Log output
No response
Issue description
group_by with agg just works, of course
Expected behavior
We can make
map_groups
work by having it do awith_columns
before dispatchingself.lgb.map_groups
so essentially have it implicitly convert the above into:Installed versions