Merge Two List of Dict
Nikhil Verma
varma.nikhil22 at gmail.com
Thu Dec 1 02:14:14 EST 2016
More information about the Python-list mailing list
Thu Dec 1 02:14:14 EST 2016
- Previous message (by thread): compile error when using override
- Next message (by thread): Merge Two List of Dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey guys
What is the most optimal and pythonic solution forthis situation
A = [{'person_id': '1', 'adop_count': '2'}, {'person_id': '3',
'adop_count': '4'}]
*len(A) might be above 10L*
B = [{'person_id': '1', 'village_id': '3'}, {'person_id': '3',
'village_id': '4'}]
*len(B) might be above 20L*
OutPut List should be
C = B = [{'adop_count': '2', 'village_id': '3'}, {'adop_count': '4',
'village_id': '4'}]
Thanks in advance
- Previous message (by thread): compile error when using override
- Next message (by thread): Merge Two List of Dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list