How to get percentage of counts of a column after groupby in Pandas

I'm trying to get the distribution of grades for each rank for names in a list of data.
However, I can't figure out how to get the proportion/percentage of each grade count over its rank group. Here's an example: