How to subset a data frame using Pandas based on a group criteria?,df.groupby('User')['X'].transform(sum) == 0