df = pd.DataFrame({'A':['group1','group1','group2','group1','group2',group1','group2','group2','group2','group1'],'B':['true','true','true','false','false','false','fasle','true','fasle','true']})
I tried to make it groupwise by using groupby function but that didn't work. Please help me out with this question.
EDIT: code