groupby belongs to itertools