print(a.reshape(2,3)) print(a)
[[0 1 2] [3 4 5]] [[0 1] [2 3] [4 5]]
reshape returns a reshaped array but does not modify the original array.
reshape