import numpy as np a = ['0.1234', '12345.6789'] a = a.astype(np.float) print(a) # Output : [0.1234, 12345.6789]