I have a Python list (numpy array) and another list which contains the indices for the location of values from the first array which I want to keep.
Is there a Pythonic way to do this? I know numpy.delete, but I want to keep the elements and not delete them.
listor anumpy.array? Obviously, it cannot be both at the same time.