pandas groupby: how to get a union of strings,df.groupby('A')['B'].agg(lambda col: ''.join(col))