I have this data:
[1999, teacher, 5]
[1999, student, 6]
[2000, doctor, 11]
I want to create dict:
{'1999': {'field1': teacher, 'field2': 5}, '2000': {'field1': doctor, 'field2': 11}}
How can I get 2 unique years from data and set it in dict?Please can anybody help to understand