Suppose I have the following pandas dataframe:
df = pd.DataFrame({\'id\': [1,2,3,4,5], \'a\': [True, True, False, True, False], \'b\': [False, True, False, Fa