Groupby is perfect. Typos corrected from test.cc q6