1

Lets say that I have a 2 dimensional array such as:

x=array([[1,2,3],[4,5,6],[7,8,9]])

And another holding the same values but in a different order and size perhaps, such as:

y=array([[4,5,6],[1,2,3],[7,8,9],[1,2,3]])

I would like a quick method using no dictionaries or lists (already done that) to find the index locations of y with respect to x. So the output would be:

z=array([1,0,2,0])

Thanks!

Canuck
  • 567
  • 1
  • 7
  • 15

0 Answers0