summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-04-08 22:59:32 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-04-10 00:06:53 -0700
commitb274299278c2fc4b534a2af0933dc2d122135eee (patch)
tree66b7d9401b058612934b261080418f2cfdaf62b9
parent918a167c30a7e19f0c0061f5e09e7637b1e04591 (diff)
downloadnumpy-b274299278c2fc4b534a2af0933dc2d122135eee.tar.gz
MAINT: Remove unnecessary special case for N == 0
-rw-r--r--numpy/lib/histograms.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py
index d2a398a0a..90e19769e 100644
--- a/numpy/lib/histograms.py
+++ b/numpy/lib/histograms.py
@@ -911,10 +911,6 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
nbin[i] = len(edges[i]) + 1 # includes an outlier on each end
dedges[i] = np.diff(edges[i])
- # Handle empty input.
- if N == 0:
- return np.zeros(nbin-2), edges
-
# Compute the bin number each sample falls into.
Ncount = tuple(
np.digitize(sample[:, i], edges[i])