I have the dataframe
ID A B C
0 p 1 3 2
1 q 4 3 2
2 r 4 0 9
And I want to create a dict where ID is the keys and B is the values so it will be:
d["q"] = 3 , d["r"] = 0
What is the best way to do so?
It is different than the supposed duplicate becasue I want single value per key and not a list