numpy.intersect1d — NumPy v1.21 Manual
numpy.org › doc › stableJun 22, 2021 · numpy.intersect1d. ¶. Find the intersection of two arrays. Return the sorted, unique values that are in both of the input arrays. Input arrays. Will be flattened if not already 1D. If True, the input arrays are both assumed to be unique, which can speed up the calculation. If True but ar1 or ar2 are not unique, incorrect results and out-of ...