diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-25 11:24:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 11:24:16 -0600 |
commit | fa9c78c9cb0597b95496d282e6def3ca9ff61ebf (patch) | |
tree | 5bb866cdfb3961b786318b855edc5b26123c986e /numpy/lib/histograms.py | |
parent | f81f3839d879491dec2545e6576db0cb0b214fae (diff) | |
parent | b274299278c2fc4b534a2af0933dc2d122135eee (diff) | |
download | numpy-fa9c78c9cb0597b95496d282e6def3ca9ff61ebf.tar.gz |
Merge pull request #10871 from eric-wieser/histogramdd-empty
MAINT: Remove unnecessary special case in np.histogramdd for N == 0
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r-- | numpy/lib/histograms.py | 4 |
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]) |