Cast string to float is not supported Error

I keep getting the error Cast string to float is not supported. I checked my parse_data_from_file function and made sure the labels were integers, but it still doesn’t work. I’m not sure what could be wrong?

Please print the dtype of every data parameter before invoking model.fit. I’m sure that there’s atleast one parameter that hasn’t been converted to numeric type.

Thank you, it worked!