Agg Function Returning A Wrong Result In Pandas Dataframe Stack Overflow

Agg Function Returning A Wrong Result In Pandas Dataframe Stack Overflow