<human>:  Pandas DataFrame Groupby two columns and get counts
<bot>:).size().groupby(level=1).max()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.