Verwenden Sie np.intersect1d
import numpy as np array_1 = np.array([1, 2, 3, 4, 5]) array_2 = np.array([1, 3, 5, 7, 9]) np.intersect1d(array_1, array_2)
Recommended Posts