In my dataframe are several patient IDs and some patients appear several times in the dataframe, which is correct. Now the patients need to get a number of the times they appear in the dataframe.
Example:
Wanted:
How can I get the occurrence number of the IDs?
Thank you for your help!!