I often end up doing things like this in pandas:
s2 = s1.groupby(level=1).sum()
s2 = s2[s2>25]
In words, I do some groupby operation and then want to keep only results that meet some condition for the result.
Is there a way to do with in one line? More specifically, is it possible to do this without creating the series and then doing the Boolean selection in a second step?