Human: How to find the index of a value in 2d array in Python? Assistant: 
Here is some code to find all the indexes in a Numpy 2D array where the value is 1

zip(*np.where(a == 1))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.