In a column risklevels I want to replace Small with 1, Medium with 5 and High with 15.
I tried:
dfm.replace({'risk':{'Small': '1'}},
{'risk':{'Medium': '5'}},
{'risk':{'High': '15'}})
But only the medium were replaced.
What is wrong ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…