Given is a simple CSV file:
A,B,C Hello,Hi,0 Hola,Bueno,1
Obviously the real dataset is far more complex than this, but this one reproduces
You can't pass str to your model fit() method. as it mentioned here
str
fit()
The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csc_matrix.
Try transforming your data to float and give a try to LabelEncoder.