I have the following dataframe:
ID Name Study City Grade
1 Vir BE Ahm 1
2 Vish ME Rjk 2
3 Keval B.sc Beng 4
4 Vir M.sc Ahm 1
5 Priya B.com Una 2
6 Vish ME Rjk 2
I want to Increment number of Group_ID column based on Name, City and Grade columns. What is the best way to get the result of the dataframe below?
ID Name Study City Grade Group_ID
1 Vir BE Ahm 1 501
2 Vish ME Rjk 2 502
3 Keval B.sc Beng 4 503
4 Vir M.sc Ahm 1 501
5 Priya B.com Una 2 504
6 Vish ME Rjk 2 502