Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: raise error trying to coerce object arrays containing timedelta64('NaT') to StringDType #26049

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

charris
Copy link
Member

@charris charris commented Mar 16, 2024

Backport of #26024.

Without the change to stringdtype_is_known_scalar_type, the second iteration of the for loop in the test would fail. Datetime already fails, so this just makes timedelta consistent with that.

I discovered this running the pandas test suite against my pandas string dtype built on StringDType.

@seberg is there maybe a better way to write is_known_scalar_type than using a bunch of if statements?

@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Mar 16, 2024
@charris charris added this to the 2.0.0 release milestone Mar 16, 2024
@charris charris merged commit 90771c6 into numpy:maintenance/2.0.x Mar 16, 2024
61 checks passed
@charris charris deleted the backport-26024 branch March 16, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants