I am trying to find the indices of the integers in a list. I have a following code that works but it takes over 45 seconds. Is there a faster way that I can use? My code looks like following:
for i in range(0,len(output)) :
indexes = [ii for ii,x in enumerate(Node1ID) if x == i].