0

I'm working with a csv file and one of the columns needs to be converted over to float. This row is giving me an error:

2020-10-26,B5,"1,315.89",,10.55,"1,618.87",,"1,911.11",0

Specific error:

ValueError: could not convert string to float: '1,315.89'

I'd imagine this would apply to other rows after this. Can't figure out why this error is thrown. Thank you.

Looked for any spaces, hidden characters, but nothing is there.

Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0