My big hint is to use the group_by
function. This looks a bit like a homework problem so I don't think it's appropriate to provide a direct solution. FAQ: Homework Policy
My big hint is to use the group_by
function. This looks a bit like a homework problem so I don't think it's appropriate to provide a direct solution. FAQ: Homework Policy