groupby fix