I have a dataframe with several hundred items each with a group number and a rank. I would like to put a nice looking table which arranges into a grid of ranks across the top and groups up and down. Each intersection (ie a given group and rank) could have no items or several items. So size of each cell/intersection would have a variable length.
See image attached - dataframe at top and desired output in bottom.