Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy savetext in one line

np.savetxt("file.txt", array.flatten(), fmt="%.3d", newline = ", ")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #savetext #line
ADD COMMENT
Topic
Name
5+1 =