How do I code which items in array 1 are contained within array 2, and append a row reflecting this (1 = it is contained, 0 = it is not:
import numpy as np
array1 = np.array([1,2,3,4,5,10,12,13])
array2 = np.array([4,6,3,5,0])
Expected Result:
np.array([[1,2,3,4,5,10,12,13],
[0,0,1,1,1,0,0,0]])
np.isin()method