// floatForCol tries to coerce a specific column of a CSV file into float64.
floatForCol tries to coerce a specific column of a CSV file into float64.
// floatForCol tries to coerce a specific column of a CSV file into float64 .
func floatForCol(col int, row CsvRow) (float64, error) {
	val := row[col]
	id := row[0]
	f, err := strconv.ParseFloat(val, 64)
	if err != nil {
		log.Printf("Could not parse column %v of row %v. Bad value: %v", col, id, val)
		return 0, err
	}
	return f, nil
}
func floatForCol ( col int , row CsvRow ) ( float64 , error ) { val := row [ col ] id := row [ 0 ] f , err := strconv . ParseFloat ( val , 64 ) if err != nil { log . Printf ( " " , col , id , val ) return 0 , err } return f , nil }
floatForCol tries to coerce a specific column of a CSV file into float64.
floatForCol tries to coerce a specific column of a CSV file into float64 .