summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-06-03 09:31:38 -0600
committerGitHub <noreply@github.com>2017-06-03 09:31:38 -0600
commit48b0374b8cb2e06a1bc620a9dcaa35c2d92753f2 (patch)
treeb02ce41cd466d1fba0d5918904ffbd3b128f1444 /numpy/lib/function_base.py
parente5e2cf89d01d7b09631977482b11df79e8131c6d (diff)
parentcbaa809820656bf39f4ec78a9bec1426239ce440 (diff)
downloadnumpy-48b0374b8cb2e06a1bc620a9dcaa35c2d92753f2.tar.gz
Merge pull request #9214 from eric-wieser/no-one-arg-where
MAINT: Don't internally use the one-argument where
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 1e6223e7c..a127c366b 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -974,7 +974,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
on_edge = (around(sample[:, i], decimal) ==
around(edges[i][-1], decimal))
# Shift these points one bin to the left.
- Ncount[i][where(on_edge & not_smaller_than_edge)[0]] -= 1
+ Ncount[i][nonzero(on_edge & not_smaller_than_edge)[0]] -= 1
# Flattened histogram matrix (1D)
# Reshape is used so that overlarge arrays