diff options
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: |