How to create an integer numpy 2darray of indexes from ndarray where elements are integers?
I’m trying to create an 2d numpy array in shape n x k where n is the dimension of the ndarray given and k is the amount of elements from the ndarray that are integers. Each row in the returned array should contain the indexes at which the condition holds at the relevant dimension.
For example, the ndarray is: