Posts by Luiz Pedro Franciscatto Guerra • 36 points
1 post
-
2
votes2
answers105
viewsA: How can I turn a string into a float?
If you want to turn every Aray value into a float, just do this: h = [ float(x.strip("[]").replace(",", ".")) for x in h ] For the face element of your array, you remove the spaces, change the comma…