Suppose I have the following array in python:
[
{'id': [1,2,3]},
{'name': [4,3,2]},
{'age': [9,0,1]},
]
How would I load this into a pandas dataframe? Usually I do pd.DataFrame
from a dict, but it's important for me to maintain the column order.
The final data should look like this:
id name age
1 4 9
2 3 0
3 2 1