diff options
author | Anas Khan <anas.khan96@outlook.com> | 2018-01-09 12:08:37 +0530 |
---|---|---|
committer | Anas Khan <anas.khan96@outlook.com> | 2018-01-09 12:08:37 +0530 |
commit | abb17d31e0f92f9e291a1a5b4f70742940287af8 (patch) | |
tree | 79bb464f8528f5b3399a0d08fad87396d551bad7 /numpy/ma | |
parent | 45df7011edaeb263a231003c1efcb5ebb902a349 (diff) | |
download | numpy-abb17d31e0f92f9e291a1a5b4f70742940287af8.tar.gz |
BUG: concatenation using axis=None in union1d
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index cbf26cfb3..99f5234d1 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.flatten(), ar2.flatten()))) + return unique(ma.concatenate((ar1, ar2), axis=None)) def setdiff1d(ar1, ar2, assume_unique=False): |