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
looks a bit suspicious. I haven't stepped through it, but it seems like we're doing pd.Series(['list', 'of', 'strings']) which pandas will infer as object. Maybe we need to pass a dtype there? Mind taking a look?
Hi! I'd like to work on this. I'll reproduce, identify the root cause, implement a minimal fix and add a regression test. Please let me know if I can proceed.
Activity
TomAugspurger commentedon Apr 11, 2025
Note that after computing, the dtypes are correct:
so it's just the
_metaafter.str.split.dask/dask/dataframe/dask_expr/_str_accessor.py
Lines 186 to 189 in 0fa5e18
pd.Series(['list', 'of', 'strings'])which pandas will infer asobject. Maybe we need to pass a dtype there? Mind taking a look?Tunahanyrd commentedon May 19, 2025
Hey! I’ve prepared a fix for this issue and confirmed that it passes tests (including preservation of
string[pyarrow]dtype). I’ll open a PR shortlyDresdenGman commentedon Jul 10, 2026
@TomAugspurger @Tunahanyrd — happy to pick this up if it's still available. The fix scope looks clear from Tom's diagnosis above.
Preserve input dtype in str.split(expand=True) metadata
Fix: Preserve dtype in str.split(expand=True) (Fixes dask#11884)
Fix: Preserve dtype in str.split(expand=True) (Fixes dask#11884)
Fix: Preserve dtype in str.split(expand=True) (Fixes dask#11884)
Rajkaran-122 commentedon Aug 22, 2026
hii @noahblakesmith @TomAugspurger please review #12560 the pr.
LeonxLJX commentedon Aug 27, 2026
Hi! I'd like to work on this issue. Please let me know if I can be assigned. Thanks!
LeonxLJX commentedon Aug 31, 2026
Hi! I'd like to look into the str.split dtype coercion issue. I'll investigate and submit a fix. Thanks!
LeonxLJX commentedon Sep 1, 2026
Hi! I'd like to work on this. I'll reproduce, identify the root cause, implement a minimal fix and add a regression test. Please let me know if I can proceed.