I want to convert the Current data format into Expected result
The items should be ordered as origin.
How could I do it in elegant way with Python
Current data format
[{'_id': 1800, 'count': 32},
.....
{'_id': 1892, 'count': 1},
{'_id': 1899, 'count': 13}]
Expected result
{"_id":[1800,1892,1899], "count":[32,1,13]}