I'm trying to find the index of a numpy array by value. The value however is also an array. In other words, it's a multi dimensional array.
For example:
a = [
[[1, 0], [0, 2], [3, 3]],
[[1, 0], [1, 3], [1, 0]],
[[4, 0], [2, 3], [3, 0]]
]
I want to find the index of [[1, 0], [1, 3], [1, 0]]
, which is 1
. Basically, I want to find the element in the array which matches the array pattern that I have.
How can I do this using numpy?