I am trying to convert numpy string array in to a float. Actually array has numbers as strings example ['22.96' '33.96'.....]
i am using astype to convert the string numpy array to float using the below code.
b = a.astype(np.float)
The above piece of code returning something like this: 1.04200000e+02
I tried np.float32
and also np.float64
but nothing working