groupby Cython <- optimized the code; no performance gains though but readability yes