I have a column in my data frame which similar to:
type
phone
smartphone
handphone
handphone
and I want to change the first "handphone" to phone, and the second "handphone" to smartphone. How can I make it in python? So far, what I have done was using df.replace(regex) but it changes both "handphone" as phone, while what I expect is:
type
phone
smartphone
phone
smartphone
thankyou.