diff options
author | Alex <aprockhill206@gmail.com> | 2020-05-15 00:11:02 -0700 |
---|---|---|
committer | Alex <aprockhill206@gmail.com> | 2020-07-22 11:59:30 -0700 |
commit | 8c4ce9936ec6989fdf2b2374489f023681e329a3 (patch) | |
tree | 5071f42b65204e2acd4675f3715b7154f3f4643d /numpy/lib/function_base.py | |
parent | 5db1c6a48c9bf626ad171caab6085eec5b7408ea (diff) | |
download | numpy-8c4ce9936ec6989fdf2b2374489f023681e329a3.tar.gz |
forgot to include monotonicity
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index c266078cf..f629a8fdb 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -4847,9 +4847,9 @@ def digitize(x, bins, right=False, edge=False): # if cannot make round trip, cannot use eps if np.issubdtype(bins.dtype, _nx.integer): if right: - bins[0] -= 1 + bins[0] -= mono else: - bins[-1] += 1 + bins[-1] += mono else: bins = bins.astype(_nx.float64) if right: |