one of my dictionary contains multiple values for a single key. I have worked on simple dictionary with single value. I am new to python not able to figure out how to handle this. I need to update a database table where "field" will be the column and the values will be from "rows" as in the below sample.
"field" key will be the column and "rows" key will be values in database table for corresponding columns.
dictn = {
u'field': [u'time',
u'met1',
u'met2',
u'met3',
u'met4',
u'met5',
u'met6',
u'met7'],
u'set': 0,
u'messages': [{u'text': u'string',
u'type': u'INFO'}],
u'rows': [[u'2016-01-00:00',
None,
u'0.24',
None,
u'0.24',
None,
u'0.16',
u'60'],
[u'2016-01-00:01:00:00',
None,
u'0.00',
None,
u'0.00',
None,
u'0.003500',
u'60'],
[u'2016-01-00:02:00.00',
None,
u'0.64',
None,
u'0.64',
None,
u'0.26',
u'60']]
}