用python淘汰excel篇:批量替换多个值
dfto1['新加'] =dfto1['bv'].replace(["BV1jb411H7aa","BV1vb411K737","BV1Ut411p7xq","BV1Nb411h7bc","BV1Sb411G726"],["a1","a2","a3","a4","a5"],)
print(dfto1.head(5))
dfto1['新加'] =dfto1['bv'].replace(["BV1jb411H7aa","BV1vb411K737","BV1Ut411p7xq","BV1Nb411h7bc","BV1Sb411G726"],["a1","a2","a3","a4","a5"],)
print(dfto1.head(5))