df = pd.DataFrame({\'A\':[\'group1\',\'group1\',\'group2\',\'group1\',\'group2\',group1\',\'group2\',\'group2\',\'group2\',\'group1\'],\'B\':[\'true\',\'true\',\'tru