Open s-b90 opened 2 months ago
thanks @s-b90 , taking a look
It looks like there's a super type issue between list and non-list values in Polars 1.*. This code worked fine in version 0.20.31.
yup, from git bisect this is due to #16918
maybe the error message can be improved in this case
you can retain the old behaviour with
df = (
pl.DataFrame(data)
.with_columns(pl.concat_list("x"), pl.concat_list("y"))
.unpivot(["x", "y", "z", "w"], index="idx", value_name="my_name")
)
Checks
Reproducible example
Log output
Issue description
It looks like there's a super type issue between list and non-list values in Polars 1.*. This code worked fine in version 0.20.31.
Expected behavior
Installed versions