I have a dataframe with multiple columns and I would like to convert dataframe for only two columns into a python dictionary.
This is an example of the DataFrame:
ID Subject Reference
0 A Elec202 23232
1 A Comp101 12456
2 B E2 54235
3 B Comp222 56654
4 C Comp123 54467
5 D E1 21345
6 D Elec102 85464
7 D Comp295 23438
The desired output:
subject_details = {"A": ("Elec202", "Comp101"),
"B": ("E2", "Comp222"),
"C": ("Comp123"),
"D": ("E1", "Elec102", "Comp295")
}