I have the numpy array:
a = np.array([[ 255,255,255],
[ 255,2,255],
[ 3,123,23],
[ 255,255,255],
[ 0, 255, 3]])
And I want to delete all the elements with [ 255,255,255], the result should be:
[[ 255,2,255],
[ 3,123,23],
[ 0, 255, 3]])
I tried with:
import numpy as np
a = np.array([[ 255,255,255],
[ 255,2,255],
[ 3,123,23],
[ 255,255,255],
[ 0, 255, 3]])
np.delete(a, [255,255,255])
but nothing happens.