could not convert string to float python csv code example
Example 1: convert string to float python
string = "88.88"
print(float(string))
# output
# 88.88
Example 2: python csv reader cast to float
csv.reader(..., quoting=csv.QUOTE_NONNUMERIC)
string = "88.88"
print(float(string))
# output
# 88.88
csv.reader(..., quoting=csv.QUOTE_NONNUMERIC)