I want to replace an item in a numpy array composed of 0 and 1. I want to replace 1 with the list [0,1] and the 0 with the list [1,0].
I found the function numpy.where(), but it doesn't work with lists.
Is there a function or something similar to do the equivalent for numpy.where(vector==1,[0,1], [1,0]) ?