Python-Itertools

How do I use itertoolsgroupby

How do I use itertoolsgroupby

I havent been capable to discovery an comprehensible mentation of however to really usage Pythons itertoolsgroupby relation What Im attempting to bash is this