np.array().astype string to float code example
Example: convert all values in array into float
import numpy as np
x = np.array(['1.1', '2.2', '3.3'])
y = x.astype(np.float)
import numpy as np
x = np.array(['1.1', '2.2', '3.3'])
y = x.astype(np.float)