Is there a way in which it is possible to read a CSV file in a dictionary such that custom rows together in a tuple are the key and the rest (in a tuple) is the value?
Here is an example table:
A |B |C |D |E
--------------
0 |0 |0 |5 |1
0 |1 |0 |2 |8
1 |0 |0 |5 |7
1 |1 |0 |3 |7
0 |0 |1 |9 |0
The result:
dictionary[(A,B,C)] = (D, E)
print(dictionary[(0,0,0)]) # (5,1)
Is there an efficient way to achieve that?