diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-04 09:36:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 09:36:19 -0800 |
commit | 91411eea6306d5b9aabab4b5abf5a16df4c3396b (patch) | |
tree | 79ab60cfa5efa6a4f4a4e9df2266632a9efb5d6b /numpy/lib/function_base.py | |
parent | 9331e55b0c16d9b8611132a4ce0fd24e52d6e629 (diff) | |
parent | 6361c2cd62b25a4b8602c647ac64466d9cc011fd (diff) | |
download | numpy-91411eea6306d5b9aabab4b5abf5a16df4c3396b.tar.gz |
Merge pull request #15487 from ericmariasis/quantile
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])) |