Search code examples
pythonstringcsvtype-conversionvalueerror

Convert strings into float value while working on csv file


I got CSV files to train but while training error is coming.

ValueError: could not convert string to float: 'CBH'

enter image description here


Solution

  • obviously You try to convert values of row "B" to float. And the Value "CBH" can not be converted to a floating point number.