I want to do something similar to what was asked here NumPy array, change the values that are NOT in a list of indices, but not quite the same.
Consider a nump
nump
One approach with np.in1d to create the mask of the ones from indxs present and then inverting it and indexing the input array with it for the desired output -
indxs
a[~np.in1d(np.arange(a.size),indxs)]