我有一本字典如下:
[{'tarih': '01.02.2019', '4980': 1.1517482514, '2738': 0.9999999999999999, '0208': 1.0102518747365854},{'tarih': '02.02.2019', '4980': 1.1517486767, '2738': 0.9999999999999999, '0208': 1.0102518747368554}]
我想写一个excel文件,如:
tarih 4980 2738 0208 // dictionary keys as column name
01.02.2019 1.1517482514 0.9999999999999999 1.0102518747365854 // dict values as value
02.02.2019 1.1517486767 0.9999999999999999 1.0102518747368554 // dict values as value
您可以使用
pandas
模块完成此操作输出:
相关问题 更多 >
编程相关推荐