Back to Numerical Arrays (NumPy)
np.union1d
Find the union of two arrays.
Syntax
np.union1d(ar1, ar2)
Description
Find the union of two arrays. Returns the sorted unique values that are in either of the input arrays.
Parameters
| Name | Description |
|---|---|
| ar1 | - First input array |
| ar2 | - Second input array |
Returns
Promise<NDArray>