file - Processing list of keys in python efficiently -
i have input file list of keys (a's) a_1, a_2, a_3,..., a_n.
i have other 4 other files key-value pairs (and key in these files). e.g., file 1 has a-b types, file 2 has a-c types, file 3 has a-d types , file 4 has a-e types.
what want efficiently attach b, c, d, , e other files every in input file list a_1-b1,c1,d1,e1;a_2-b2,c2,d2,e2 , questions ideal thing in case - list of json objects? list of objects (creating class each seen?
p.s. i'm not looking code. ideas me started. thanks!
one way deal have dictionary uses a_1, a_2, etc keys point lists of b1, c1, etc:
{ a_1 : [b1, c1, d1, e1], a_2 : [b2, c2, d2, e2], # ... }
Comments
Post a Comment