I have a list of tuples as follows:
tupleList = [('a','b'), ('c','d'), ('a','b'), ('a','b'), ('e','f')]
I want to find index of ('a','b')
in tupleList.
I am trying the following:
idx = np.where(tupleList == ('a','b'))
but it gives an empty array.
Desired output would be
idx = [0, 2, 3]