I have a dataframe similar to this:
df = pd.DataFrame({'A':[[(1,2), (3,4)], [(5,6), (7,8), (9,10)]]})
I would like to transform into this format:
df = pd.DataFrame({'a':[1,3,5,7,9], 'b':[2,4,6,8,10]})
So basically have all the tuples[0] into column A and the tuples1 into column B
I found this Stack Overflow question helpful : how to split column of tuples in pandas dataframe? but I have a list of tuples and not a single tuple in the columns.
Any help would be appreciated. Thank you