, , broadcasting. n dimensional n-1 dimensional.
, np.vstack() . .
, 1D- n,
>>> n = 5
>>> df_array = np.arange(n)
>>> df_array
array([0, 1, 2, 3, 4])
n x 10:
>>> bigger_array = np.empty([10,n])
>>> bigger_array[:] = df_array
>>> bigger_array
array([[ 0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.],
[0., 1., 2., 3., 4.]])
So, with a single line of code, you can fill it with the contents of a smaller array.
big_array [:] = df_array
NB. Avoid using python lists. They are far, much slower than Numpy ndarray.