I have 2 dictionaries that are supposed to be exactly the same but there was a small difference, around 0.0035% but still that's a considerable number of elements given my number of data.
What i'd like is to get that difference between 2 dictionaries in a 3 rd dictionary, for example :
mydict = {
'a': [[2,4], [5,6]],
'b': [[1,1], [1,7,9], [6,2,3]],
'c': [['a'], [4,5]],
}
second_dict = {'a': [[2,4]],
'b': [[1,1], [1,7,9], [6,2,3]],
}
Let's assume mydict
is the ground truth with all the elements and second_dict
is the one missing a few, diff_dict
should be :
diff_dict = {'a': [[5,6]],
'c': [['a'], [4,5]],
}