I have a file with the following input:
    ID    time count
100000458   18  1
100000458   18  1
100000458   18  1
100000458   18  1
100000458   18  1
100000458   17  1
100000458   17  1
100000458   17  1
100000458   17  1
100005361   00  1
100005361   10  1
100005361   10  1
100005361   10  1
what I want to achieve is an output which prints the maximum occurring time of a particular id along with the frequency. e.g.
[100000458 18 5]
[100005361 10 3]
and so on. and if there is a tie then print both times along with the frequency.
I believe using a dictionary in python will be the best way to go but I have been unable to implement a nested dictionary. Other option is to use a list but not sure how well it will scale for large datasets. Any help will be much appreciated.
 
     
     
    