Let's say I have a nested dictionary in a dictionary, with that dictionary's value being a list.
How do I add the sum of the values inside the list? For example:
I would like the output to be dict = {one: {"a": 3, "b": 9}....}
dataset = {
"one" : { "a" : [ 0, 1, 2 ], "b" : [ 2, 3, 4 ] },
"two" : { "a" : [ 0, 1, 2, 3 ], "b" : [ 0, 1 ] }
}