Answers for "numpy remove certain values from array"

C
0

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])
Posted by: Guest on March-15-2022
1

python remove one element from numpy array

numpy.delete(a, index)
Posted by: Guest on March-22-2020

Code answers related to "numpy remove certain values from array"

Code answers related to "C"

Browse Popular Code Answers by Language