Answers for "python numpy array to text with savetxt"

C
-2

save numpy array to text file

a_file = open("test.txt", "w")
for row in an_array:
    np.savetxt(a_file, row)

a_file.close()
Posted by: Guest on February-10-2021
0

numpy savetxt list of strings

num.savetxt('test.txt', DAT, delimiter=" ", fmt="%s")
Posted by: Guest on November-18-2021

Code answers related to "python numpy array to text with savetxt"

Code answers related to "C"

Browse Popular Code Answers by Language