If I do the following, I get a dataframe with the dictionary keys as headers and the values in a row:
d = {'a':['a'], 'b':['b'], 'c':['c']}
pd.DataFrame(d)
a b c
0 a b c
If I do the same but add column names, the dataframe is empty...
d = {'a':['a'], 'b':['b'], 'c':['c']}
pd.DataFrame(d, columns = [1,2,3])
1 2 3
Why?