Assuming that d_name
is the dictionary you provided, then d_name.values()
is a list of lists of lists of floats. So value is a list of lists of floats and you cannot hand that to two()
without an error.
Even if you get that resolved the zip returns a number of tuples base on the shortest argument. So that:
new_d_name = dict(zip(d_name.keys(),
[two(value) for value in (d_name.values()[0][0])]))
results in {'130405C00465000': '8.70'}
This assumes that all values are of the single item list in list type as in the example, in that case you probably could use:
new_d_name = dict(zip(d_name.keys(),
[[two(value) for value in (d_name.values()[0][0])]]))
to get:
{'130405C00465000': ['8.70', '8.90', '0.51', '32.81', '-141.16']}