diff options
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r-- | numpy/lib/histograms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py index 66e2ccda1..a770e3d31 100644 --- a/numpy/lib/histograms.py +++ b/numpy/lib/histograms.py @@ -918,7 +918,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None): on_edge = (np.around(sample[:, i], decimal) == np.around(edges[i][-1], decimal)) # Shift these points one bin to the left. - Ncount[i][np.nonzero(on_edge & not_smaller_than_edge)[0]] -= 1 + Ncount[i][on_edge & not_smaller_than_edge] -= 1 # Flattened histogram matrix (1D) # Reshape is used so that overlarge arrays |