I have 6000 log files(so very large data) in the form:
u1 1234
u3 231
u5 3456
u1 2367
u7 68968
u8 2112
u6 32423
u7 12345
Where ui is the ith unit and second column is timestamp.Now i need to store all the data in an efficient data structure.
Language:Python
What i was doing was a dictionary of list.Where key will be the unit number and value will be a list containing values of all the timestamps related to that unit.If there is a better option please suggest.