I do have a DataFrame like this:
col1 col 2
abc sure
def yes
ghi no
jkl no
mno sure
pqr yes
stu sure
我的意图是将“sure”和“yes”重命名为“confirm”,使数据框看起来像这样:
col1 col 2
abc confirm
def confirm
ghi no
jkl no
mno confirm
pqr confirm
stu confirm
如何实现这个呢? :)