I want to be able to 'build' a numpy array on the fly, I do not know the size of this array in advance.
For example I want to do something like this:
a= np.array()
for x in y:
a.append(x)
Which would result in a containing all the elements of x, obviously this is a trivial answer. I am just curious whether this is possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…