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')
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')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us