I'm trying to remove specific columns from an array:
data = array([[ 6, 3, 3],
[ 7, 4, -1]])
target = array([[3]
[-1]])
I want to find the index of the column within data which is identical to target, so that I can call:
np.delete(data, index, axis=1)
It looks like some combination of all and where might be the answer, but I just can't get it to work out.