I have come across some strange behavior in Pandas groupby-apply that I am trying to figure out. Take the following example dataframe:
import pandas as pd imp