How to calculate count and percentage of total for each rank using pandas : I have a data set with a column called ratings from 1 to 5. The result should be as follows:

Rating  Count  Count %
1         10    6.66%
2         20    13.33%
3         30    20.00%
4         40    26.66%
5         50    33.33%

Total Ratings: 150

(1) All percentages should be approximated in 2 decimal places
(2) The result should be in a data frame with column names - Rating, Count & Count%

How to get this result using pandas?