I have a daily recurring script that pulls data from an API and exports it to a EXCEL file. Below is the code I am using for the dataframe to excel conversion.
df.to_excel("/Users/janedoe/Downloads/Covid-19/Covid_Export_Global.xlsx", sheet_name = 'Sheet_name_1')
Will above df conversion add new rows of data to the same excel file everyday?
Or will it deleted the previous day data and write a new rows of data to the same excel file everyday?
If it is option number 2 is there a way I can achieve it like option 1.