Dict = {'type': 'book', 'text_eng': 'National accounts', 'text': 'Volkswirtschaftliche Gesamtrechnungen', 'anchor': 'GESAMTVOLK'}
pd.DataFrame(Dict)
pd.DataFrame.from_dict(Dict)
Above script throws error: "ValueError: If using all scalar values, you must pass an index"
I need Dictionary Keys as DataFrame Columns & Dictionary Values in rows.
Below script working fine as Dictionary Values added as List
Dict = {'type': ['book'], 'text_eng': ['National accounts'], 'text': ['Volkswirtschaftliche Gesamtrechnungen'], 'anchor': ['GESAMTVOLK']}
Please let me know how to achiev this?