I have a dataframe df
Name Reagent
0 Experiment1 water
1 Experiment1 oil
2 Experiment1 water
3 Experiment1 milk
4 Experiment1 water
5 Experiment1 tea
6 Experiment1 water
7 Experiment1 coffee
8 Experiment2 water
9 Experiment2 coffee
I want to replace duplicate names within the same experiment with a differentiator of some sort. In the example only water is duplicated within a given experiment.
e.g
Name Reagent
0 Experiment1 water1
1 Experiment1 oil
2 Experiment1 water2
3 Experiment1 milk
4 Experiment1 water3
5 Experiment1 tea
6 Experiment1 water4
7 Experiment1 coffee
8 Experiment2 water
9 Experiment2 coffee
Thanks for any help