1 | initial version |
I'd recommend using CSV files, since they're the simplest and can be opened with Excel.
To save the array (see the documentation for more options, such as the precision of values to be stored):
numpy.savetxt('out.csv', L1, delimiter=',')
(For saving multiple arrays in the same file, it depends on how you want to do it. You can do numpy.vstack
for stacking them of top of one another, for example.)
To read back the array:
numpy.loadtxt('out.csv', delimiter=',')