DataFrame groupby-aggregate strategy

depending on what’s your expected behavior,