Inconsistent behavior of pl.element().replace()
: Works for list of integers, crashes for list of strings
#15074
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Replacing elements inside a list column with
.list.eval(pl.element().replace({key: list_of_values})
works for typelist[int]
but errors for data of typelist[str]
Expected behavior
The results should be identical apart from the datatype.
Installed versions
The text was updated successfully, but these errors were encountered: