I am struggling with sorting a list of ndarrays using index of a second binary list. For example, if I have:
List1 = ([ndarray1][ndarray2][ndarray3][ndarray4])
List2 = [1,0,1,1]
I wish to use the index of List2 position of 0 and 1 to sort List1. In this example, the outcome would be:
List3 = ([ndarray1][ndarray3][ndarray4])
List4 = ([ndarray2])
Your help would be appreciated.