numpy string array to float

55

numpy string array to float -

import numpy as np
x = np.array(['1.1', '2.2', '3.3'])
y = x.astype(np.float)

Comments

Submit
0 Comments