I want to convert the numpy array ['800' '0' '0.3048' '71.3' '0.00266337'] to float form with the sigfigs shown in the strings.
When I tried (with help from this answer
X_new = X_tr.astype(float)
I got [8.00000e+02 0.00000e+00 3.04800e-01 7.13000e+01 2.66337e-03]
I don't want to see the full floating point form. Is there a way for it to format the float the way it was in the string? I would prefer if I didn't have to round to the decimal I want for each specific column case.