I have a piece of data that looks like this. How do I save it into a csv file? I was thinking of adding it to another list but I'm not sure if that will work. I tried to use the solution of the question asked in the link below, however then the csv file only saves the coordinates of the last image.
How do I write this piece of data to a csv file?
data =
[{'box': [43, 37, 133, 168],
'confidence': 0.99,
'keypoints': {'left_eye': (78, 104),
'right_eye': (143, 99),
'nose': (110, 137),
'mouth_left': (82, 161),
'mouth_right': (147, 156)}}]
[{'box': [34, 33, 119, 161],
'confidence': 0.99,
'keypoints': {'left_eye': (61, 104),
'right_eye': (116, 99),
'nose': (86, 133),
'mouth_left': (67, 161),
'mouth_right': (117, 156)}}]
It's my first time asking a question so pardon me if its not clear!
My expected output is this: sample