I am using the following link to convert a array of string to array of float Convert String to float array
The data that I am getting is in a weird format
535. 535. 535. 534.68 534.68 534.68
Although numpy is able to convert the string array to float but some other is failing when data is in the format 535.
Is there a way to convert all 535. to 535.00 in one go.
I am using the following code for conversions
import numpy as np
strarray = ["535.","535.","534.68"]
floatarray = np.array(filter(None,strarray),dtype='|S10').astype(np.float)
print floatarray