I have an output of an SQL query in this way:
[{'count': 8L, 'subscriber_id': 54, 'eclipse_id': 11294}, {'count': 1L, 'subscriber_id': 54, 'eclipse_id': 11243}, {'count': 1L, 'subscriber_id': 54, 'eclipse_id': 11295}, {'count': 1L, 'subscriber_id': 150, 'eclipse_id': 11313}, {'count': 1L, 'subscriber_id': 150, 'eclipse_id': 11305}, {'count': 7L, 'subscriber_id': 150, 'eclipse_id': 11309}, {'count': 1L, 'subscriber_id': 150, 'eclipse_id': 11267}]
in this way:
({'subscriber_id':["54","54","54","150","150","150"],
'eclipse_id':["11295","11305",,""11309,"11313","11309","11267"],
'count':[8,1,1,1,7,1]})
To use econ graphlab in a SFrame:
data = graphlab.SFrame({'subscriber_id':["54","54","54","150","150","150"],
'eclipse_id':["11295","11305",,""11309,"11313","11309","11267"],
'count':[8,1,1,1,7,1]})
Can this transformation help me?
Actually the output of the SQL query is quite longer.