I have nested dictionary (with length > 70.000):
users_item = {
"sessionId1": {
"12345645647": 1.0,
"9798654": 5.0
},
"sessionId2":{
"3445657657": 1.0
},
"sessionId3": {
"87967976": 5.0,
"35325626436": 1.0,
"126789435": 1.0,
"72139856": 5.0
},
"sessionId4": {
"4582317": 1.0
}
......
}
I want create CSV file from my nested dictionary, my result will look like:
sessionId1 item rating
sessionId1 item rating
sessionId2 item rating
sessionId3 item rating
sessionId3 item rating
sessionId3 item rating
sessionId3 item rating
.......
I found this post: Convert Nested Dictionary to CSV Table
It's similar to my question but it's not working when I try all answers, pandas library run out of memory
How I can make CSV file with my data?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…