In my project I'm using flask I get a JSON (by REST API) that has data that I should convert to a pandas Dataframe. The JSON looks like:
{
    "entity_data":[
                  {"id": 1, "store": "a", "marker": "a"}
    ]
}
I get the JSON and extract the data:
params = request.json
entity_data = params.pop('entity_data')
and then I convert the data into a pandas dataframe:
entity_ids = pd.DataFrame(entity_data)
the result looks like this:
   id marker store
0   1      a     a
This is not the original order of the columns. I'd like to change the order of the columns as in the dictionary. help?
 
     
     
    