I'm struggling to make do some data wrangling on a pandas dataframe. I've been stuck on this problem for 2 days now.
I've got a dataframe that looks like this:
['a','e']
['b','f']
['c','g']
['d','h']
['a','i']
['b','j']
['c','k']
['d','l']
And I need to turn it into looking like this
['a',['e','i']]
['b',['f','j']]
['c',['g','k']]
['d',['h','l']]
So basically pivoting the original dataframe around the first column and then creating a list of strings from the second column.
thanks