Skip to content

Fix: str.split coerces dtype by preserving meta dtype (Fixes #11884)Fix: preserve dtype in str.split meta construction (Issue #11884)#12357

Open
mahek1210 wants to merge 1 commit into
dask:mainfrom
mahek1210:fix/str-split-dtype-coercion
Open

Fix: str.split coerces dtype by preserving meta dtype (Fixes #11884)Fix: preserve dtype in str.split meta construction (Issue #11884)#12357
mahek1210 wants to merge 1 commit into
dask:mainfrom
mahek1210:fix/str-split-dtype-coercion

Conversation

@mahek1210

Copy link
Copy Markdown

Fix dtype coercion in str.split

This PR fixes Issue #11884 where .str.split() coerces dtype to object.

Root Cause

Meta construction did not preserve original dtype.

Fix

Pass dtype=self.frame._meta.dtype when constructing meta.

Testing

  • Ran tests for string accessor module:
    • 53 tests passed

@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     21 files  ±0       21 suites  ±0   5h 24m 10s ⏱️ + 14m 18s
 18 293 tests ±0   16 934 ✅  - 1   1 272 💤 ±0  87 ❌ +1 
317 520 runs  ±0  273 726 ✅  - 1  43 707 💤 ±0  87 ❌ +1 

For more details on these failures, see this check.

Results for commit 1082a98. ± Comparison against base commit af4e5c3.

@github-actions github-actions Bot added the needs attention It's been a while since this was pushed on. Needs attention from the owner or a maintainer. label May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs attention It's been a while since this was pushed on. Needs attention from the owner or a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant