Alternativen zum Anhängen an Numpy Array
import numpy as np
array=np.zeros(n)
# n= your array lenth
for i in range(n):
array[i] = v
Pleasant Sloth
import numpy as np
array=np.zeros(n)
# n= your array lenth
for i in range(n):
array[i] = v
In [2]: a = np.empty((0,3), int)
In [3]: a
Out[3]: array([], shape=(0L, 3L), dtype=int32)
In [4]: a = np.append(a, [[1,2,3]], axis=0)
In [5]: a
Out[5]: array([[1, 2, 3]])
In [6]: a = np.append(a, [[1,2,3]], axis=0)
In [7]: a
Out[7]:
array([[1, 2, 3],
[1, 2, 3]])