group rows of pandas dataframe `df` with same 'id',df.groupby('id').agg(lambda x: x.tolist())