独热编码后遇到问题,ValueError: could not convert string to float: 'C'

图片说明图片说明图片说明

你可以这样

X1=df[['Age','City_Category']]
algorithm.fit_predict(X1)