Given a dataframe like this:
'John', 0.25
'Mary', 0.2
'Adam', 0.1
'Andrew', 0.6
I would like to generate a unique integer for every category in a certain series. For example, in the case above, the output could be something like this
0, 0.25
1, 0.2
2, 0.1
3, 0.6
possibly with pandas or standard libraries only.