For reasons that are somewhat complex, I need to sample from a pandas data frame where I group by a specific variable, call_id, then apply some logic to a given variable num