I have this structure below, my question is what would be the best way to put all of it... one or several csv file(s)?, I mean should I try and put all in one single file or should I try to split it in several files?. And if you have any suggestions as to how to do it.
I am learning to work with csv files, I have started to work with containers that have 2 levels, I guess I can say I know how to do a list of dictionaries and pass it to csv, and a dictionary of lists and pass that to csv, and also a list of lists and a dictionary of dictionaries...
But this thing has 4 levels.
It is a list of dictionaries, which in turn are lists of dictionaries.
data= [
{
"name":None,
"age":None,
"city":None,
"score":0,
"attempts":0,
"collection":[
{
'title':None,
'artist':None,
'genre':None,
'year':None,
'guessed':0
},
{
'title':None,
'artist':None,
'genre':None,
'year':None,
'guessed':0
},
{
'title':None,
'artist':None,
'genre':None,
'year':None,
'guessed':0
}
]
},
{
"name": None,
"age": None,
"city": None,
"score": 0,
"attempts": 0,
"collection": [
{
'title': None,
'artist': None,
'genre': None,
'year': None,
'guessed': 0
},
{
'title': None,
'artist': None,
'genre': None,
'year': None,
'guessed': 0
},
{
'title': None,
'artist': None,
'genre': None,
'year': None,
'guessed': 0
}
]
}
]