I have a 2d dictionary as follow:
myDict = {
"AIK":{"dfa":1,"bff":2,"mam":1},
"BQQ":{"dic":5,"mam":8,"nzz":3},
"ZZD":{"gox":6,"xee":2,"dic":9}
}
The length of myDict.keys()
is 5000 and the sum of inner keys is 10000
How can I convert it to a scipy sparse matrix (5000,10000) as fast as possible