summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorAnas Khan <anas.khan96@outlook.com>2018-01-09 12:08:37 +0530
committerAnas Khan <anas.khan96@outlook.com>2018-01-09 12:08:37 +0530
commitabb17d31e0f92f9e291a1a5b4f70742940287af8 (patch)
tree79bb464f8528f5b3399a0d08fad87396d551bad7 /numpy/lib/arraysetops.py
parent45df7011edaeb263a231003c1efcb5ebb902a349 (diff)
downloadnumpy-abb17d31e0f92f9e291a1a5b4f70742940287af8.tar.gz
BUG: concatenation using axis=None in union1d
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index e00163941..6fce1c047 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -614,7 +614,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.flatten(), ar2.flatten())))
+ return unique(np.concatenate((ar1, ar2), axis=None))
def setdiff1d(ar1, ar2, assume_unique=False):
"""