I'm confused, you can use filter after a groupby in pandas...
It's late here, I'm going to bed, perhaps I'll write the code tomorrow when I'm at my laptop and not on my phone.