There are two sheets in the excel file: SheetA and SheetB
My SheetA has formula linking data to SheetB. I want to update SheetB on daily basis so that SheetA's info could be updated on daily basis as well.
My code is as follows but it deletes SheetA.
path1 = <file location>
book = load_workbook(path1)
writer = pd.ExcelWriter(path1, engine = 'openpyxl')
writer.book = book
df.to_excel(writer, "SheetB", index = False)
writer.save()
writer.close()