I have a data structure that is a list of lists of dicts:
[
[{'Height': 86, 'Left': 1385, 'Top': 215, 'Width': 86},
{'Height': 87, 'Left': 865, 'Top': 266, 'Width': 87},
{'Height': 103, 'Left': 271, 'Top': 506, 'Width': 103}],
...
]
I can convert it to a data frame:
detections[0:1]
df = pd.DataFrame(detections)
pd.DataFrame(df.apply(pd.Series).stack())
Which yields:
This is almost what I want, but:
How would I turn the dictionary in each of the cells into a row with columns 'Left', 'Top', 'Width' 'Height'?