Vote count:
0
I have a data structure that looks like this:
x = {'A1':{'day1':{'feature1':20, 'feature2':40}}
'A2':{'day2':{'feature1':50, 'feature2':70}}}
I want to be able to write this dictionary to a csv like this:
day1, day2
a1, 20, 40
a2, 50, 70
Is it possible to use the python csv module to create this?
asked 1 min ago
Creating a csv files from a nested dictionary
Aucun commentaire:
Enregistrer un commentaire