-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: np.isnan
gives error with dtype object
arrays
#28602
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
Comments
I also found that Code:
Error:
|
Hi @Tontonio3, can I work on this? |
@Mohit-Kundu Yeah, I'm not currently working on it. But we usually don't assign issues |
Before starting to implement, it would be good to think through what should happen. To me, it's not quite obvious what the expectations are. E.g., what should |
Yeah, there are some old issues on this, which would be good to at least check briefly first, since this is a duplicate. I don't really like special casing floats and |
You're right, considering that I do believe that it should have the same behaviour for a |
Describe the issue:
np.isnan
does not work with dtypeobject
arraysReproduce the code example:
Error message:
Python and NumPy Versions:
2.2.1
3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)]
Runtime Environment:
No response
Context for the issue:
I was working on another issue when I came across this. I don't know if this is the intended behavior and I couldn't figure out why it was happening so I decided to report.
The text was updated successfully, but these errors were encountered: