Замените строку значением NAN
data['horsepower'].replace(to_replace='?' , value = np.nan,inplace = True)
data['horsepower'].unique()
Helpful Hare
data['horsepower'].replace(to_replace='?' , value = np.nan,inplace = True)
data['horsepower'].unique()