I have a df1:
ID Score
XF7 4
XF4 6
XF10 5
DE10 3
XF4 1
DE10 6
DE11 2
R3 8
PPR16 2
DE11 10
I would like to replace the ID's with a number that is unique to the ID. For example XF7 could be "1" while all of the XF4's would be "2".
ID Score NumID
XF7 4 1
XF4 6 2
XF10 5 3
DE10 3 4
XF4 1 2
DE10 6 4
DE11 2 5
R3 8 6
PPR16 2 7
DE11 10 5