I am trying to convert a string, "2,900.99", to a float. Trying float(int("2,900.99")) has not worked and float("2,900.99") is not working. The value is pulled from selenium and beautiful soup and the type of data is a string so I don't know how I can change the type of data. Thanks in advance for any answers!
Add a comment
|