Why can't I just convert a dict into a data frame?
dict = {
"carat": 0.3,
"cut": 64.0,
"color": 55.0,
"clarity": 4.25,
"depth": 4.28,
"table": 2.73,
"x": 2.0,
"y": 1.0,
"z": 6.0
}
novo = pd.DataFrame(dict.items(), columns = dict.keys())
novo
This returns the error:
ValueError: 9 columns passed, passed data had 2 columns