📌  相关文章
📜  将列表列表转换为 pandas 数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.107000             🧑  作者: Mango

代码示例5
salary = [['Company', 'Job', 'Salary($)'],
          ['Google', 'Machine Learning Engineer', 121000],
          ['Google', 'Data Scientist', 109000],
          ['Google', 'Tech Lead', 129000],
          ['Facebook', 'Data Scientist', 103000]]
df = pd.DataFrame(salary[1:], columns=salary[0])