#pip install numpy
import numpy as np
a = np.zeros((5,3),np.float32)
#print(a.dtype,a.shape)
b = a.T.reshape(-1,2)
c = np.mgrid[0:5:5j,0:6:5j]
a = np.array([[1, 2], [3, 4]])
b = np.array([[5, 6]])
np.concatenate((a, b), axis=0)
array([[1, 2],
[3, 4],
[5, 6]])
np.concatenate((a, b.T), axis=1)
array([[1, 2, 5],
[3, 4, 6]])