I have a numpy array of shape (100, 100, 6). For the purposes of my work, I have to pad this array to have the 3rd dimension of 8 instead of 6, so the final shape should be (100, 100, 8). I want to pad using zeros, something like this.
np.zeros((100, 100, 2))
I have tried both numpy append and concatenate along axes 0 and 1, but it's not resulting in the way I want the zero padding to be appended.
Could someone please forward me to the right direction? Thank you.
axis=2should work, since both arrays are 3d, and only differ in the last axis.