diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-06-24 09:10:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 09:10:53 -0700 |
commit | 0a00dc9d5a6c7ad87a8117bace5a6775b0d737df (patch) | |
tree | 1fb4828019b35348443209a2a243b0f6074e6357 /numpy/lib/twodim_base.py | |
parent | 871fac7d1c08d00533f8351b8d32ad0f6e30dab1 (diff) | |
parent | 22d5415f4e5e2e7009ccd86ac7915ba43a0b7d97 (diff) | |
download | numpy-0a00dc9d5a6c7ad87a8117bace5a6775b0d737df.tar.gz |
Merge pull request #13813 from mhvk/histogram2d-dispatcher-fixup
BUG: further fixup to histogram2d dispatcher.
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 0b4e3021a..f3dc6c8e1 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -573,7 +573,7 @@ def _histogram2d_dispatcher(x, y, bins=None, range=None, normed=None, N = len(bins) except TypeError: N = 1 - if N != 1 and N != 2: + if N == 2: yield from bins # bins=[x, y] else: yield bins |