TypeError: 'Series' objects are mutable, thus they cannot be hashed used it in dataframe

后端 未结 0 480
花落未央
花落未央 2020-12-30 21:13

train_df[\'Embarked\'] = train_df[\'Embarked\'].map( {\'S\': 0, \'C\': 1, \'Q\': 2} ).astype(int)

i wrote this and its still showing this error

相关标签:
回答
  • 消灭零回复
提交回复
热议问题