I have two list of dictionaries as shown in example below
list1=[
{
"pdpData":{
"a":1,
"b":2
}
}
]
list2=[
{
"pdpData":{
"a":1,
"c":3
}
},
{
"pdpData":{
"a":2,
"b":3
}
}
]
I want the result as shown in the format below
list3=[
{
"pdpData":{
"a":1,
"b":2,
"c":3
}
},
{
"pdpData":{
"a":2,
"b":3
}
}
]
The size of list1 and list2 could be in 10000's. List3 would be the union of list1 and list2. What could be the best pythonic solutions to solve this problem.