I'm very new to Python and programming and I have an issue I can't resolve. I have an excel file with 3 columns:
Id Object kg
1142 Apple 17,5
1142 Banana 13,55
1142 Kiwi 52,3
1255 Apple 77,38
1255 Banana 99,42
1255 Kiwi 128,35
I want to create a dictionary that takes as key the Id and the Object and as value th kg (for instance {(1142, Apple) : 17,5, (1142, Banana) : 13,55, ...}
Is there a way to create such dictionary? What module should I import? Thanks in advance!