I was working on a project and stumbled upon this problem. I have two arrays A and B of shape (8,3) and (2,2). How can I find all the rows of A that contain elements of each row of B regardless of the order of the elements in B?
A = np.random.randint(0,5,(8,3))
B = np.random.randint(0,5,(2,2))
Thanks!