I have an 3d Numpy Array e.g.:
array = np.array([[[1,2],[3,4]],[[0,5],[6,7]]])
=[[[1 2]
[3 4]]
[[0 5]
[6 7]]]
I want to remove the elements in the same column, e.g. column 1. So the result should be:
=[[[1]
[3]]
[[0]
[6]]]
I tried the np.delete function:
print np.delete(array[:][:],1,axis=1)
But it dosen't produce the desired result, instead I get:
=[[[1 2]]
[[0 5]]]
I found this in the np doc (Link):
np.delete(array, np.s_[::2], 1)
But this seems to only remove the uneven Numbers and I don't know how to modify it. Also the doc on the np.s Function did not take me any further.
Any Help would be highly appreciated!
axis=2.