Union of two arrays. The output is always a masked array. See `numpy.union1d` for more details. See Also -------- numpy.union1d : Equivalent function for ndarrays.
(ar1, ar2)
| 1352 | |
| 1353 | |
| 1354 | def union1d(ar1, ar2): |
| 1355 | """ |
| 1356 | Union of two arrays. |
| 1357 | |
| 1358 | The output is always a masked array. See `numpy.union1d` for more details. |
| 1359 | |
| 1360 | See Also |
| 1361 | -------- |
| 1362 | numpy.union1d : Equivalent function for ndarrays. |
| 1363 | |
| 1364 | """ |
| 1365 | return unique(ma.concatenate((ar1, ar2), axis=None)) |
| 1366 | |
| 1367 | |
| 1368 | def setdiff1d(ar1, ar2, assume_unique=False): |