Convertir le tableau de chaîne 2D en Float Python
import numpy as np
a = ['0.1234', '12345.6789']
a = a.astype(np.float)
print(a)
# Output : [0.1234, 12345.6789]
Im_Arxus
import numpy as np
a = ['0.1234', '12345.6789']
a = a.astype(np.float)
print(a)
# Output : [0.1234, 12345.6789]