hi I am simply trying to save a dataframe to an excel (xlsx) and while I am able to save the data it seems its deleting other tabs. The tab I am pasting to already exists in the excel sheet so I don't need to add it. codes I have used are below
I came across quite a few similar questions on SO but didn't quite get the answer. could someone help plz? it just needs to go to the top left of the sheet i.e. row 0, column 0
from openpyxl import load_workbook
writer = pd.ExcelWriter('/Users/prasadkamath/PycharmProjects/Pk/tryexcel.xlsx', engine='openpyxl')
PK_comb_updated.to_excel(writer, sheet_name='pk')
writer.save()