I have 5 lists and I want to map them to a hierarchical dictionary.
let's say i have:
temp = [25, 25, 25, 25]
volt = [3.8,3.8,3.8,3.8]
chan = [1,1,6,6]
rate = [12,14,12,14]
power = [13.2,15.3,13.8,15.1]
and what I want as my dictionary is this:
{25:{3.8:{1:{12:13.2,14:15.3},6:{12:13.8,14:15.1}}}}
Basically the dictionary structure is:
{temp:{volt:{chan:{rate:power}}}}
I tried using the zip function but it does not help in this case because of the repeated values in the list at the top level