I want to create a dictionary from the values imported from the excel file using python, the excel columns file looks like this:
University | Year |
---|---|
IUB | 2013 |
IUB | 2013 |
IUB | 2013 |
IUB | 2014 |
IUB | 2015 |
BZU | 2013 |
BZU | 2013 |
BZU | 2014 |
UCP | 2016 |
UCP | 2016 |
UCP | 2013 |
UCP | 2014 |
The output should look like this :
'IUB': {'2013': '3', '2014': '1', '2015': '1'},
'BZU': {'2013': '2', '2014': '1'},
'UCP': {'2013': '1', '2014': '1', '2016': '2'}