Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

list elements not in indices

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #elements #indices
ADD COMMENT
Topic
Name
6+7 =