I would like to save arrays in loop to one file, so instead of,
x = np.array([1,2,3,4,5])
y = np.array([7,6,5,2,1])
np.savetxt('out.txt', np.array([x,y]))
I would like to be able to add arrays in loop:
for i in range(0,2):
x[i] = np.array([1,2,3,8,3])
np.savetxt('out.txt', x[i])
and do not overwrite previous arrays. Is there anything else except savetxt I could use?