| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.ma.union1d.html | [Back] [Original] |
Section Navigation
Union of two arrays.
The output is always a masked array. See numpy.union1d for more details.
See also
numpy.union1dEquivalent function for ndarrays.
Examples
>>> import numpy as np
>>> ar1 = np.ma.array([1, 2, 3, 4])
>>> ar2 = np.ma.array([3, 4, 5, 6])
>>> np.ma.union1d(ar1, ar2)
masked_array(data=[1, 2, 3, 4, 5, 6],
mask=False,
fill_value=999999)
Copyright 2008-2026, NumPy Developers.
Created using Sphinx 7.2.6.
Built with the PyData Sphinx Theme 0.17.1.
| Web Proxy Viewer | New URL | Original Page |