I've seen a couple of similar threads but they didn't really help me hence the new post.
I would like to create the df below from a list of tuples:
Values Total extra
label
Pictionary 0.000000 12
Chess 4.609929 12
Cluedo 8.421986 12
Here are all the components to make it happen:
columns = ['Total, 'extra']
tups = [(u'Pictionary', 0.0, 12)
(u'Chess', 4.6099290780141837, 12)
(u'Cluedo', 8.4219858156028362, 12)]
My failed attempt:
pd.DataFrame(tups, columns=columns)
Error message:
AssertionError: 2 columns passed, passed data had 3 columns
pd.DataFrame(tups, columns=['Values']+columns)?