I have the following Dataframe in pandas,
Score Risk
30 High Risk
50 Medium Risk
70 Medium Risk
40 Medium Risk
80 Low Risk
35 High Risk
65 Medium Risk
90 Low Risk
I want get total count, group by count and percentage the Risk column by its values, like this:
Expected output
Risk Category Count Percentage
High Risk 2 25.00
Medium Risk 4 50.00
Low Risk 2 25.00
Total 8 100.00
Can someone explain how can I achieve the expected output.