fix: Add fallback for incompatible string concenation in pandas#3548
fix: Add fallback for incompatible string concenation in pandas#3548MarcoGorelli wants to merge 3 commits intonarwhals-dev:mainfrom
Conversation
|
Note Edited to increase the range Have you thought about handling the dtypes somewhere around here instead? narwhals/narwhals/_pandas_like/namespace.py Lines 320 to 328 in 2eaaa03 E.g. you could do 2 passes where:
This is reminding me a bit of #3398 (comment) 😄 |
|
not sure about doing it for all ops tbh, but for string concatenation at least it seems to be necessary so i'd suggest starting with that, we can make it more generally available later if necessary |
Sorry if I wasn't clear, I was talking about |
|
we'd then need to do the same casts for |
I was a bit confused by this, I had no idea import polars as pl
>>> pl.Series(["a", "b", "c"]) + pl.Series(["d", "e", "f"])
shape: (3,)
Series: '' [str]
[
"ad"
"be"
"cf"
] |
closes #3546
Description
What type of PR is this? (check all applicable)
Related issues
Checklist