import numpy as np x = np.array(['1.1', '2.2', '3.3']) y = x.astype(np.float) print(y) # Output : [1.1, 2.2, 3.3]
numbers = ['1', '2', '3.2'] numbers = list(map(float, numbers))