0
Column A Column B
1 {'type': 'car', 'cost' :5000}
1 {'type': 'bike', 'cost' :2000}

I have a pandas DataFrame which looks in the above format. What I plan to do is to join the results of column 'Details' into a list based upon unique ID value Desired Output:

Column A Column B
1 [{'type': 'car', 'cost' :5000}, {'type': 'bike', 'cost' :2000}]

0 Answers0