Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete specific indeces from numpy array

# Create a Numpy array from list of numbers
arr = np.array([4, 5, 6, 7, 8, 9, 10, 11])
# Delete element at index positions 1,2 and 3
arr = np.delete(arr, [1,2,3])
 
PREVIOUS NEXT
Tagged: #delete #specific #indeces #numpy #array
ADD COMMENT
Topic
Name
2+6 =