I have two arrays, for example:
a = [a, b, c, d, e, f, g]
b = [1, 2, 3, 4, 5, 6, 7]
My first array is then splitted in a dictionary, in the following form:
dict = {key1: [a, c, e], key2: [f, g], key3: [b, d]}
I would like to get another dictionary, having the same partition but with the elements of array b:
dict = {key1: [1, 3, 5], key2: [6, 7], key3: [2, 4]}
In other words, I would like a correspondence between arrays a and b