I have the following two numpy arrays:
a = array([400., 403., 406.]);
b = array([0.2,0.55,0.6]);
Now I would like to create a dictionary where the array a acts as keys and b as corresponding values:
dic = {
400: 0.2,
403: 0.55,
406: 0.6
}
How could I achieve this ?