回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我正在获取一些数据,当我在列表中获取这些数据时,我想将其写入csv文件(可能使用pandas)</p>
<p>我要转换的数据是列表形式的:</p>
<pre><code>['Val Guene',
'Vice President at Global Impact Partners',
[['Vice President',
'Global Impact Partners',
'Apr 2019',
'Present',
'2 yrs 3 mos',
'N/A',
' '],
['Executive Board Member',
'Prismflare',
'Nov 2018',
'Present',
'2 yrs 8 mos',
'N/A',
''],
['Co-Founder',
'Prismflare',
'Jul 2017',
'Nov 2018',
'1 yr 5 mos',
'N/A',
''],
['Executive Board Member',
'SDS Masala',
'Feb 2019',
'Apr 2021',
'2 yrs 3 mos',
'New Delhi Area, India',
' '],
['Manager',
'PwC',
'Jul 2018',
'Jan 2019',
'7 mos',
'Greater New York City Area',
''],
['Senior Associate', 'PwC', 'Jul 2015', 'Jun 2018', '3 yrs', 'N/A', ''],
['Experienced Associate', 'PwC', 'Jul 2013', 'Jun 2015', '2 yrs', 'N/A', ''],
['Associate', 'PwC', 'Aug 2012', 'Jun 2013', '11 mos', 'N/A', ''],
['Fellow',
'Martindale Center for the Study of Private Enterprise',
'Jan 2011',
'Aug 2012',
'1 yr 8 mos',
'N/A',
' ']],
[['Harvard University', 'Graduate', 'Philosophy', '2012', '2012'],
['Lehigh University',
"Bachelor's degree",
'Economics, International Relations, Psychology',
'2008',
'2012'],
['UWC-USA', 'International Baccalaureate', 'Economics', '2006', '2008']]]
</code></pre>
<p>我想知道我是否可以通过以下表格获得:</p>
<pre><code>Name Tag Role Company Start End and so on...
</code></pre>
<p>教育和经验的细节在不同的列表中有所不同,我尝试使用pandas和columns属性,但失败了。我正在努力使每一行都有一个经验/教育细节</p>