In [27]: import numpy as np In [28]: a = np.ones((3,4)) In [29]: a Out[29]: array([[ 1., 1., 1., 1.], [ 1., 1., 1., 1.], [ 1., 1., 1., 1.]])