I have the below DataFrame, I want to select the Services where there are less than 2 'Healthy' instances of that service. In this case I want the Series (EmailService, UserService, NotificationService)
CPU Service Memory Status
IP
10.22.11.150 13 StorageService 55 Healthy
10.22.11.90 23 StorageService 19 Healthy
10.22.11.91 10 EmailService 44 Healthy
10.22.11.92 69 UserService 1 Healthy
10.22.11.93 63 NotificationService 81 Healthy
10.22.11.93 87 NotificationService 98 Unhealthy
I think I need this grouping,
grouped = servers_df.groupby('Service')
but not sure how to count the Status column and then get the result based on that.