Hi, i am very new to python. I got a dictionnary which i want to format in order to use it as a two dimensional list.
Here is an exemple of my data:
In fact it is just a representation of a table of data with keys as (line, column)
so i want to get something like that:
line[0] = ["0.100000000000 00001","0.08333 3333333333329", ]
line[1] = ["<value of (1,0)>", "<value of (1,1)>", .....] and so forth
I tried every possible way i know to do that in python but i don't know to much about python.
Appreciate any help or advice
Thanx
Here is an exemple of my data:
Code:
{(1, 3): 0.040000000000000001, (3, 0): 0.040000000000000001,
(2, 1): 0.050000000000000003, (0, 3): 0.050000000000000003,
(4, 0): 0.02, (1, 2): 0.053333333333333337, (3, 3): 0.02,
(4, 4): 0.0066666666666666671, (2, 2): 0.040000000000000001,
(4, 1): 0.016666666666666666, (1, 1): 0.066666666666666666,
(3, 2): 0.026666666666666668, (0, 0): 0.10000000000000001,
(0, 4): 0.033333333333333333, (1, 4): 0.026666666666666668,
(2, 3): 0.029999999999999999, (4, 2): 0.013333333333333334,
(1, 0): 0.080000000000000002, (0, 1): 0.083333333333333329,
(3, 1): 0.033333333333333333, (2, 4): 0.02,
(2, 0): 0.059999999999999998, (4, 3): 0.01,
(3, 4): 0.013333333333333334, (0, 2): 0.066666666666666666}
In fact it is just a representation of a table of data with keys as (line, column)
so i want to get something like that:
line[0] = ["0.100000000000 00001","0.08333 3333333333329", ]
line[1] = ["<value of (1,0)>", "<value of (1,1)>", .....] and so forth
I tried every possible way i know to do that in python but i don't know to much about python.
Appreciate any help or advice
Thanx
Comment