Closed hericks closed 1 week ago
import polars as pl df = pl.DataFrame({ "x": [[{"x": 1}]] }) df.with_columns( pl.col("x").list.eval(pl.struct(pl.element().struct.field("x"))) ) # ColumnNotFoundError:
No response
It is not possible to select a specific field of each element in a list of struct using pl.Expr.list.eval.
pl.Expr.list.eval
No ColumnNotFoundError. Instead a dataframe with a single column x having value 1 in the only row.
x
1
This is fixed on main https://github.com/pola-rs/polars/issues/19345
Checks
Reproducible example
Log output
No response
Issue description
It is not possible to select a specific field of each element in a list of struct using
pl.Expr.list.eval
.Expected behavior
No ColumnNotFoundError. Instead a dataframe with a single column
x
having value1
in the only row.Installed versions