From b274299278c2fc4b534a2af0933dc2d122135eee Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sun, 8 Apr 2018 22:59:32 -0700 Subject: MAINT: Remove unnecessary special case for N == 0 --- numpy/lib/histograms.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'numpy/lib/histograms.py') 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]) -- cgit v1.2.1