diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-06-03 13:23:46 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-06-03 13:37:15 +0100 |
commit | cbaa809820656bf39f4ec78a9bec1426239ce440 (patch) | |
tree | 11ea32b20030a51eecf51ba43e58456cebc56081 /numpy/lib/nanfunctions.py | |
parent | 0e4610e30aabaf32c037fc94c869a20f2435a8f1 (diff) | |
download | numpy-cbaa809820656bf39f4ec78a9bec1426239ce440.tar.gz |
MAINT: Don't internally use the one-argument where
nonzero is a clearer spelling
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 6bd949b34..97bd33492 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -837,7 +837,7 @@ def _nanmedian1d(arr1d, overwrite_input=False): See nanmedian for parameter usage """ c = np.isnan(arr1d) - s = np.where(c)[0] + s = np.nonzero(c)[0] if s.size == arr1d.size: warnings.warn("All-NaN slice encountered", RuntimeWarning, stacklevel=3) return np.nan @@ -1161,7 +1161,7 @@ def _nanpercentile1d(arr1d, q, overwrite_input=False, interpolation='linear'): See nanpercentile for parameter usage """ c = np.isnan(arr1d) - s = np.where(c)[0] + s = np.nonzero(c)[0] if s.size == arr1d.size: warnings.warn("All-NaN slice encountered", RuntimeWarning, stacklevel=3) if q.ndim == 0: |