OneHotEncoder Error: cannot convert string to float
问题 I was wondering if someone could help me with this. I'm learning about Multiple Linear Regression and was trying to do some practice but seem to have hit a problem. I was trying to convert payment_type into a categorical variable using onehotencoder. Here I have the error and the first few rows and columns of the data. I tried looking online and doing things that other people suggested but I kept getting errors from those as well. Is there a way to fix this? I've been trying for hours now.