I want it:
SP,1,2,3 1,1.000000e+00,2.000000e+00,3.000000e+00 2,1.630000e+01,1.990000e+01,1.840000e+01 3,1.630000e+01,1.990000e+01,1.840000e+01 4,1.630000e+01,1.990000e+01,1.840000e+01
I have the following code:
np.savetxt("Final Array.csv", my_array, fmt="%10.6e", delimiter=',')
He produces:
1.000000e+00,2.000000e+00,3.000000e+00 1.630000e+01,1.990000e+01,1.840000e+01 1.630000e+01,1.990000e+01,1.840000e+01 1.630000e+01,1.990000e+01,1.840000e+01
I already have arrays created for the top row and left column.
How can I format this so that I can correctly format the numbers, while remaining the largest column on the left, and the top row remains formatted as they are?
I use vstack and hstack to combine them, but "SP" also causes problems because it is not a float.
Can I possibly format them, convert everything to a string, concatenate and then savetxt?