The error is caused by the presence of "?" in the data. From the Kaggle link, I noticed that the horsepower column has it.
You could replace the "?" with NaN to indicate missing value(s), and then handle these missing value(s) using appropriate techniques.