May-10-2020, 12:14 PM
I generated a Array with
How could I have the data formatted as such ?
x = numpy.zeros((2,2))and assigned one "index" with a value =
x[0,1] = 5.25I would like to export easily this as an CSV. I used
numpy.savetxt('exported.csv',x.ravel(),delimiter=',')But this store the data as float:
5.349999999999999645e+00
How could I have the data formatted as such ?
Quote:0
5.25
0