diff options
author | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 15:06:34 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-02-28 09:44:50 -0500 |
commit | 6361c2cd62b25a4b8602c647ac64466d9cc011fd (patch) | |
tree | b264b95ed103d829fe659c1368be695bb2b04b5c /numpy/lib/function_base.py | |
parent | 94d3302039856667988f82d637f9a35998d19a79 (diff) | |
download | numpy-6361c2cd62b25a4b8602c647ac64466d9cc011fd.tar.gz |
BUG: Fixing result of np quantile edge case
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 12320ae47..47b5133be 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3870,7 +3870,7 @@ def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, "'midpoint', or 'nearest'") n = np.array(False, dtype=bool) # check for nan's flag - if indices.dtype == intp: # take the points along axis + if np.issubdtype(indices.dtype, np.integer): # take the points along axis # Check if the array contains any nan's if np.issubdtype(a.dtype, np.inexact): indices = concatenate((indices, [-1])) |