I have a dataframe df1 and I want to export it to an Excel which already has some sheets.
I tried using:
writer = pd.ExcelWriter(file_path, engine = 'xlsxwriter')
df1.to_excel(writer, sheet_name = 'test1', index = False)
writer.save() 
This code deletes the existing sheets, and exports df1 into sheet named test1.