diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-01-18 18:09:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 18:09:25 -0700 |
commit | 7d2c9d1b32a2d76d28453705e6f8b589d7e273d7 (patch) | |
tree | 55f0d8875ba0695860069705d49d03cd810082d7 /numpy/lib/arraysetops.py | |
parent | 8a772dd80929aa556c6c01b9025f3c1da0666938 (diff) | |
parent | 70e34252dc224ace1192cb8534fd55442afe3dfe (diff) | |
download | numpy-7d2c9d1b32a2d76d28453705e6f8b589d7e273d7.tar.gz |
Merge pull request #10342 from anaskhan96/union1d-fix
BUG: arrays not being flattened in `union1d`
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 7e8bf2133..b1e74dc74 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -618,7 +618,7 @@ def union1d(ar1, ar2): >>> reduce(np.union1d, ([1, 3, 4, 3], [3, 1, 2, 1], [6, 3, 4, 2])) array([1, 2, 3, 4, 6]) """ - return unique(np.concatenate((ar1, ar2))) + return unique(np.concatenate((ar1, ar2), axis=None)) def setdiff1d(ar1, ar2, assume_unique=False): """ |