回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我有一个列表数据,我想把它转换成dataframe,但是有一个特定的列。请帮助我获得正确的输出</p>
<p>范例-
我所拥有的资料-</p>
<pre><code>[{'data': [{'interval': '2021-09-22T09:13:57.000Z/2021-09-29T09:13:57.000Z',
'metrics': [{'metric': 'nOffered',
'qualifier': None,
'stats': {'count': 17,
'count_negative': None,
'count_positive': None,
'current': None,
'denominator': None,
'max': None,
'min': None,
'numerator': None,
'ratio': None,
'sum': None,
'target': None}},
{'metric': 'tAnswered',
'qualifier': None,
'stats': {'count': 17,
'count_negative': None,
'count_positive': None,
'current': None,
'denominator': None,
'max': 17327.0,
'min': 4569.0,
'numerator': None,
'ratio': None,
'sum': 156929.0,
'target': None}},
{'metric': 'tTalk',
'qualifier': None,
'stats': {'count': 29,
'count_negative': None,
'count_positive': None,
'current': None,
'denominator': None,
'max': 2650757.0,
'min': 2124.0,
'numerator': None,
'ratio': None,
'sum': 8402252.0,
'target': None}}],
'views': None}],
'group': {'mediaType': 'voice',
'queueId': 'a72dba75-0bc6-4a65-b120-8803364f8dc3'}}]
</code></pre>
<p>我必须将其转换为以下格式-</p>
<pre><code>nOffered_count nOffered_sum tAnswered_count tAnswered_sum tTalk_count tTalk_sum
17 None 17 156929.0 29 8402252.0
</code></pre>