I have a variable <class 'list'> that comes from a post request API in GraphQL that looks like this:
[
{'duration': 0,
'phase':
{
'name': 'Start form'
}
},
{'duration': 441,
'phase':
{
'name': 'Análise do SAC - Mesas'
}
},
{'duration': 126057,
'phase':
{
'name': 'Análise do SAC - Industrial'
}
}
]
How can I iterate thru this list and create a dataframe that looks like this:
| Start form | Análise do SAC - Mesas | Análise do SAC - Industrial |
|---|---|---|
| 0 | 441 | 126057 |
I need to create the df like this because I will merge with another df
Also, I'm curious, what's the need of this list organization? Like a list of lists? List of dict?
Thanks in advance!!