I am trying to compare a one dimensional array in a collection of 1 dimensional array using python. For example:
import numpy as np;
data= np.array( [ [1,2] , [2,3] ,[3,4], [1,2] , [0,9] ])
#I want to get the indexes of [1,2] which are 0 and 3 for above list
Does anyone have an idea how to implement that in python?
1 Answer