Hi,
I would like to do the same as:
import numpy as np
a = np.array([[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]]],
[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]]],
[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]]],
[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]]]])
>>> a.shape
(4, 3, 2, 3)
new = np.delete(a, (0, 1), axis=3)
>>> new.shape
(4, 3, 2, 1)
Which gives:
array([[[[ 3],
[ 6]],
[[ 9],
[12]],
[[15],
[18]]],
[[[ 3],
[ 6]],
[[ 9],
[12]],
[[15],
[18]]],
[[[ 3],
[ 6]],
[[ 9],
[12]],
[[15],
[18]]],
[[[ 3],
[ 6]],
[[ 9],
[12]],
[[15],
[18]]]])