I'm trying to save a txt file in Python through numpy.savetxt
. The data should be organized in columns that I read from a 2 dimensional list: basically I need to write
np.column_stack((noise[:,0], noise[:,1], ..., noise[49]))
In the end 50 columns should be present.
Is there any way to avoid writing this manually and do it automatically instead (maybe even for a different number of columns)?