I have a dataframe that looks like below
Index Batch Name
0 1 Jon
1
2 2 Adam
3
4 3 Voges
5
6 4 Jon
I want to create another dataframe from this dataframe clubbing the batch numbers
Batch Name/Batches
1 Jon(1,4)
2 Adam(2)
3 Voges(3)
4 Jon(1,4)
How can i do this, should i create a new list or ordereddict from the existing DF and then convert that to another DF or this can be done on the fly.
UPDATE: Edited with Spaces in between them