NumPy Example | Remove Element from an Array

This numpy example will show us how to remove an element from a numpy array.

import numpy as np
a = np.array([10, 20, 30, 40, 50, 60, 70, 80, 90, 100])
index = 3
a = np.delete(a, index)

We will get:

[10, 20, 30, 50, 60, 70, 80, 90, 100]