I have a dictionary that I want to convert to a 3-column Data Frame.
dict= {(0, 367): 0.0,
(2, 6): 0.0,
(2, 4): 0.0,
(2, 3): 0.0,
(2, 1): 0.0,
(5, 6): 0.0,
(5, 263): 0.0}
What I tried:
pd.DataFrame(results)
error I get:
ValueError: If using all scalar values, you must pass an index
Expected result
col1 col2 col3
0 367 0.0
2 6 0.0
2 4 0.0
2 3 0.0
2 1 0.0
5 6 0.0
5 263 0.0