Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas to excel

df1 = pd.DataFrame([['a', 'b'], ['c', 'd']],
                   index=['row 1', 'row 2'],
                   columns=['col 1', 'col 2'])
df1.to_excel("output.xlsx")
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #excel
ADD COMMENT
Topic
Name
8+7 =