I want to append a sequence of numbers by group ID.
I have a column that looks like this:
ID [123, 124...]
I need to append a sequence of numbers (1:485) to each unique ID so that the final data frame looks like this:
ID [123, 123, 123, 123, 124, 124, 124, 124...]
Number [1, 2, 3, 4, 1, 2 , 3, 4...]
Does anyone have simple guidance?
IDpart of pandasdataframeof just a plainlist?