Open AtollRewe opened 5 days ago
I think list.eval()
gets converted into a group_by internally which is probably where the cryptic error comes from.
It seems pl.field()
is also invalid inside list.eval()
df.select(pl.col.X.list.eval(pl.field("a")))
# InvalidOperationError: field expression not allowed at location/context
Perhaps they could both be allowed.
Checks
Reproducible example
Log output
Issue description
There is no
group_by
in my user code, so the error messages seems cryptic.The MRE shows a call to
with_fields
with no arguments, which should be a noop, but of course the error also exists when arguments are given.Expected behavior
In the MRE above, the expected behavior would the original created DataFrame (or a copy thereof).
Installed versions