You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is indeed expected behavior. You would have to cast your column to a String before using str.replace, or provide schema_overrides to read_csv.
Not sure which PR introduced the change in behavior that affected you, but we make correctness improvements all the time. This would fall into that category.
Checks
Reproducible example
Polars 1.6.0:
Polars 1.7.0:
Log output
No response
Issue description
Starting 1.7.0, calling Expr.str.replace on a Int64 column raises instead of silently casting to String.
The i64 column type was inferred by
pl.read_csv()
, which is why I didn't expect it to be ani64
but astr
.Expected behavior
Current behavior might be correct, I just can't find the change in the release notes.
Installed versions
The text was updated successfully, but these errors were encountered: