Let's say, I have the following data frame.
Person_info
(Bob, 2)
(John, 1)
(Bek, 10)
(Bob, 6)
I would like to anonymise by just keeping their value.
Person_info
(Person 1, 2)
(Person 2, 1)
(Person 3, 10)
(Person 1, 6)
I got simple way to anonymise here but it can't help what I want to get.
Can any one help with this in Pandas Python?