📌  相关文章
📜  如何在python代码示例中将字典保存为excel

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

代码示例1
import pandas as pd

dict1 = {"number of storage arrays": 45, "number of ports":2390}

df = pd.DataFrame(data=dict1, index=[0])

df = (df.T)

print (df)

df.to_excel('dict1.xlsx')