diff options
author | mattip <matti.picus@gmail.com> | 2019-10-29 23:10:31 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-10-29 23:10:31 +0200 |
commit | 647ea1908cc33eb2f9fb6c5828cfb895f8663cc0 (patch) | |
tree | 2da5d0f07adecdad06af1b44ced5e59f42ac41f5 /numpy/lib/nanfunctions.py | |
parent | 117220ff29bcbc85bc888f8590d3653a9e9808f4 (diff) | |
download | numpy-647ea1908cc33eb2f9fb6c5828cfb895f8663cc0.tar.gz |
WIP, DEP, ENH: finish richcompare changes from 1.10
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 18ccab3b8..0ae74bbbb 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -99,7 +99,7 @@ def _replace_nan(a, val): if a.dtype == np.object_: # object arrays do not support `isnan` (gh-9009), so make a guess - mask = a != a + mask = (a != a).astype(bool) elif issubclass(a.dtype.type, np.inexact): mask = np.isnan(a) else: |