📅  最后修改于: 2022-03-11 14:46:22.830000             🧑  作者: Mango
### replace one value ###
df["column"].replace("US","UK") # you can also use numerical values
### replace more than one value ###
df["column"].replace(["man","woman","child"],[1,2,3]) # you can also use numerical values
# man ==> 1
# woman ==> 2
# child ==> 3