concatenate row values for the same index in pandas,df.groupby('A')['expand'].apply(list)