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: ufunc 'isfinite' not supported for datetime64 data on version 1.24.0 #22842
Comments
The bug affects import pandas as pd
from numpy import ma
s = pd.Series([0.0,1.0,2.0,3.0])
ma.masked_invalid(s) The issues looks to me like |
Correction: the issue seems to come from #22046, which changed the behaviour of I can probably provide a fix PR restoring the explicit array construction but I'm unsure of whether that's the best way forward. |
It is also breaking float64 types:
E TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' |
Describe the issue:
Starting from
numpy==1.24.0
matplotlib can't process input data of typedatetime64
anymore.Reproduce the code example:
Error message:
NumPy/Python version information:
1.24.0 3.10.9 (main, Dec 7 2022, 01:12:00) [GCC 9.4.0]
Context for the issue:
All plotting functionality from our packages that rely on dated index data stopped working. The solution for now was to drop numpy version to
1.23.4
, not sure if there's some workaround but for what we researched nothing seemed to fix it so far.The text was updated successfully, but these errors were encountered: