I am struggling to convert a dictionary to a pandas dataframe. The dictionary has the following structure, where keys in the embedded dictionaries corresponds to column names of the table:
d = {{key1:v1,key2:v2},{key1:v3,key2:v4}}
The dictionaries within the main dictionary correspond to a row
Expected output:
key1 key2
0 v1 v2
1 v3 v4
I have been trying to use DataFrame.from_dict() but could not make it work with that structure. Any idea how to do that efficiently?
Many thanks