Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to save a dictionary to excel in python

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')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #dictionary #excel #python
ADD COMMENT
Topic
Name
8+8 =