I have a pandas DataFrame of the form:
age begin end product_id
0 40 1578178800 1579388400 [3, 4]
1 30 1578178800 1579388400 [3, 4, 6, 2, 5, 1]
2 30 1578178800 1578265200 [6]
3 58 1578178800 1578265200 [6]
4 30 1578178800 1578265200 [6]
Since theproduct_id is the combination of the products the customers choose. For example: 1 - electronics, 2 - automobiles, 3- accessories, 4 - Robots, 5 - Training, 6 - Other
I would like to have the DataFrame in the form below without the list around it:
age begin end product_id
0 40 1578178800 1579388400 accessories, Robots
1 30 1578178800 1579388400 accessories, Robots, Other, automobiles, Training, electronics
2 30 1578178800 1578265200 Other
3 58 1578178800 1578265200 Other
4 30 1578178800 1578265200 Other