Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

PREVIOUS NEXT
Code Example
Python :: jupyter notebook pass python variable to shell 
Python :: install pandas in python mac 
Python :: yield godot 
Python :: sklearn minmaxscaler pandas 
Python :: install magic python 2 
Python :: average value of list elements in python 
Python :: py get mouse coordinates 
Python :: find all text in site python 
Python :: python word cloud 
Python :: discord.py commands not working 
Python :: only keep few key value from dict 
Python :: py get days until date 
Python :: django admin prefetch_related 
Python :: python - remove scientific notation 
Python :: python get ros package path 
Python :: pygame fullscreen 
Python :: get local timezone python 
Python :: df dropna ensure that one column is not nan 
Python :: ckeditor django 
Python :: pip install chatterbot 
Python :: add x axis label python 
Python :: dataframe to list 
Python :: Change the user agent selenium 
Python :: python querystring parse 
Python :: django refresh form db 
Python :: ipywidgets pip 
Python :: django foreign key field on delete do nothing 
Python :: pandas multiple string contains 
Python :: python read file 
Python :: xpath beautifulsoup 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =