Wymień elementy nie w indeksach
mask = np.ones(arr.size, dtype=bool)
mask[indexes] = False
result = arr[mask]
Spotless Sloth
mask = np.ones(arr.size, dtype=bool)
mask[indexes] = False
result = arr[mask]
import numpy as np
x=np.array(mylist)
mask=np.full(len(mylist),True,dtype=bool)
mask[idx]=False
y=x[mask]
z=x[~mask]
print(y,z)