summaryrefslogtreecommitdiff
path: root/numpy/ma/extras.py
diff options
context:
space:
mode:
authorAnas Khan <anasalimkhan@gmail.com>2018-01-08 11:33:09 +0530
committerGitHub <noreply@github.com>2018-01-08 11:33:09 +0530
commit63462697992fd8ebd608ba617c811d9b3d703a91 (patch)
treece70f4dbef647cc21f97d7351775711b6c6d5fdd /numpy/ma/extras.py
parent6540a7bc05dab39554c9252f2b83b4794bee1024 (diff)
downloadnumpy-63462697992fd8ebd608ba617c811d9b3d703a91.tar.gz
BUG: arrays not being flattened in `union1d`
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r--numpy/ma/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py
index 360d50d8a..cbf26cfb3 100644
--- a/numpy/ma/extras.py
+++ b/numpy/ma/extras.py
@@ -1209,7 +1209,7 @@ def union1d(ar1, ar2):
numpy.union1d : Equivalent function for ndarrays.
"""
- return unique(ma.concatenate((ar1, ar2)))
+ return unique(ma.concatenate((ar1.flatten(), ar2.flatten())))
def setdiff1d(ar1, ar2, assume_unique=False):