import numpy as np matriz = np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) nova_matriz = matriz.reshape((4, 2)) print(nova_matriz)