This is the (3x9) array:
[[ 0 1 2 3 4 5 6 7 8]
[ 9 10 11 12 13 14 15 16 17]
[18 19 20 21 22 23 24 25 26]]
I want to have it like this (3x3):
[[ 2 7 8]
[11 16 17]
[20 25 26]]
I wrote some code. Is there a better way to do it?
AB = x[:,2:] #Removes the first 2 columns
print(AB)
C = np.delete(AB, 1, 1)
print(C)
D = np.delete(C, 1, 1)
print(D)
E = np.delete(D, 1, 1)
print(E)
F = np.delete(E, 1, 1)
print(F)