pl.struct usage of schema renders keyword argument renaming ineffective #16509
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
I'm using the
named_exprs
parameter ofpl.struct
to easily name fields as explained in the docstring and expect it to act identically to expressions inexprs
with an additional alias. This is exactly what happens initially in source, but then the derived alias remains unused since expressions become rebuilt after https://github.com/pola-rs/polars/blame/d856b4987091dce730d8d0c4ffc08b14bf48f8cc/py-polars/polars/functions/as_datatype.py#L585-L586. I guess the check should includenot named_exprs
, too?Expected behavior
Identical to
Installed versions
The text was updated successfully, but these errors were encountered: