You mean this perhaps?
columns = col.values()[0].keys()
zip(columns, zip(*(v.values() for v in col.values())))
where col
references your dictionary and columns
is a list produced from the keys of one of the nested dictionaries.
It is important that you produce columns
from a nested dictionary, otherwise you wouldn't get the keys and values in the same order.
Demo:
>>> col = {"00:00:00:00":{"NAME":"aaa","ID":"111","DEPT":"8888","JOIN":"666","DL":333,"SNAME":"John","ULOAD":"600","RETRY":"3","IP":"111.222.333.444"},
... "11:11:11:11:11":{"NAME":"bbb","ID":"222","DEPT":"9999","JOIN":"777","DL":222,"SNAME":"Mary","UPLOAD":"200","RETRY":"2","IP":"122.133.144.155"},
... "22:22:22:22":{"NAME":"ccc","ID":"333","DEPT":"6666","JOIN":"111","DL":333,"SNAME":"Stuart","UPLOAD":"500","RETRY":"4","IP":"199.188.177.166"}}
>>> columns = col.values()[0].keys()
>>> zip(columns, zip(*(v.values() for v in col.values())))
[('DEPT', ('9999', '8888', '6666')), ('DL', (222, 333, 333)), ('SNAME', ('Mary', 'John', 'Stuart')), ('JOIN', ('777', '666', '111')), ('NAME', ('bbb', 'aaa', 'ccc')), ('IP', ('122.133.144.155', '600', '199.188.177.166')), ('RETRY', ('2', '111.222.333.444', '4')), ('ID', ('222', '3', '333')), ('UPLOAD', ('200', '111', '500'))]
>>> pprint(zip(columns, zip(*(v.values() for v in col.values()))))
[('DEPT', ('9999', '8888', '6666')),
('DL', (222, 333, 333)),
('SNAME', ('Mary', 'John', 'Stuart')),
('JOIN', ('777', '666', '111')),
('NAME', ('bbb', 'aaa', 'ccc')),
('IP', ('122.133.144.155', '600', '199.188.177.166')),
('RETRY', ('2', '111.222.333.444', '4')),
('ID', ('222', '3', '333')),
('UPLOAD', ('200', '111', '500'))]