I have a list of lists of tuples, where every tuple is of equal length, and I need to convert the tuples to a Pandas dataframe in such a way that the columns of the datafram
tupList = [[('commentID', 'commentText', 'date'), ('123456', 'blahblahblah', '2019')], [('45678', 'hello world', '2018'), ('0', 'text', '2017')]] print(pd.DataFrame(sum(tupList,[])))
Output
0 1 2 0 commentID commentText date 1 123456 blahblahblah 2019 2 45678 hello world 2018 3 0 text 2017