I have a tuple like this:
(array([0, 0, 0]), array([0, 1, 2]))
I would like to select the first element of each array in this tuple and want to achieve this result: [0,0] or [0,1] or [0,2]
How can I do this?
Actually, this tuple is obtained from a function in numpy.where what I do is like this:
import numpy as np
x=np.array([[1,2,3],[4,5,6],[7,8,9]])
xi=np.where(x<4)
any suggestion?