I want to find out the percentage of occurrence particular group(group by 2 columns) with the no of occurrence of group by of single column. Like in below i want to calculate the occurence of group by(Cardno,Sitedesc) divided by the group by(Cardno). Thanks in advance
Data
Cardno Sitedesc
0 883484 30
1 1017011 59
2 304531 48
3 304531 59
4 304531 32
5 687253 46
6 351841 59
7 976365 58
8 983485 46
9 326465 30
10 326465 40
11 983485 58
12 983485 46
13 983485 48
14 847535 31
15 687250 47
16 687250 46