Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

append data at the end of an excel sheet pandas

### first get max row number ###
max_row = df.shape[0]
### the append to (max_row + 1) without header ###
df.to_excel("file.xlsx",sheet_name="sheetname",startrow=max_row+1,header=False,index=False)
### if you have index column in your excel file ###
	 ### then you can just set index=True  ###
 
PREVIOUS NEXT
Tagged: #append #data #excel #sheet #pandas
ADD COMMENT
Topic
Name
2+1 =