I start out with a pandas dataframe and a 1x8 numpy array of indices:
0  0,   0.0035
1  1,   0.0070
2  2,   0.0025
3  3,   0.0005
4  4,   0.0105
5  5,   0.0015
6  6,   0.0085
7  7,   0.0055
8  8,   0.0060
9  9,   0.0030
array([0, 2, 4, 8, 9, 5, 3, 1])
I'd like to return a mapping result with the array the "key":
array([0.0035, 0.0025, 0.0105, 0.0060, 0.0030, 0.0015, 0.0005, 0.0070])
I attempt
new_list = [ map(float, nodes2[i]['node,prob'].split(',')) for i in indices[0]]
                 
for item in new_list:
    print(item)
which returns below.
<map object at 0x000001B4898AFF88>
<map object at 0x000001B4898AF408>
<map object at 0x000001B489591C48>
<map object at 0x000001B48959D688>
<map object at 0x000001B4898CF608>
<map object at 0x000001B4898CF7C8>
<map object at 0x000001B489962908>
Now of course, rather than memory addresses (pointers to?), liked to see their content! I've seen the loop itemizing the list solve this in another Q&A here. Why isn't it working here? Thanks!
