I have two data frames like the following:
Id Name Price
1 [ABC] 33900
1 [XYZ] 33900
When I groupby using tolist by id, I got a list as:
Id Name Price
1 [[ABC],[XYZ]] [33900,33900]
I want to convert this to single value as:
Id Name Price
1 [ABC,XYZ] 33900
I am not able to apply np.mean or any other operation as it is showing as list. Dataframe also included string which successfully grouped using tolist but integers also got added as list.