summaryrefslogtreecommitdiff
path: root/numpy/lib/histograms.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-04-08 14:13:12 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-04-08 15:01:27 -0700
commitad53a1fa29ae1da089213dadb5734714ed0d7e76 (patch)
tree07fc9b9305c935159cebcb0efee1a21e2115512a /numpy/lib/histograms.py
parent4a178b2f21fbf55786c3cfe6c247d91cfb4155b2 (diff)
downloadnumpy-ad53a1fa29ae1da089213dadb5734714ed0d7e76.tar.gz
MAINT: Remove dead code.
len(xy) == N, and we already checked if N == 0 above.
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r--numpy/lib/histograms.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py
index 536dc9be7..ed38ef851 100644
--- a/numpy/lib/histograms.py
+++ b/numpy/lib/histograms.py
@@ -932,9 +932,6 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
# Compute the number of repetitions in xy and assign it to the
# flattened histmat.
- if len(xy) == 0:
- return np.zeros(nbin-2, int), edges
-
flatcount = np.bincount(xy, weights)
a = np.arange(len(flatcount))
hist[a] = flatcount