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
Each of those raises an:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Background
Numpy 1.18 returns NaT for np.min(a) (it did skip NaT before 1.18; #14717). This breaks xarray (pydata/xarray#3409) and pandas (pandas-dev/pandas#29058) - therefore it would be good to make np.isnan work with datetime.
Uh oh!
There was an error while loading. Please reload this page.
Reproducing code example:
Error message:
Each of those raises an:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Background
Numpy 1.18 returns
NaT
fornp.min(a)
(it did skipNaT
before 1.18; #14717). This breaks xarray (pydata/xarray#3409) and pandas (pandas-dev/pandas#29058) - therefore it would be good to makenp.isnan
work withdatetime
.Also: #9009, #1307, #5222
Numpy/Python version information:
1.18.0.dev0+3b5db53 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21)
[GCC 7.3.0]
The text was updated successfully, but these errors were encountered: