I develop data analysis app with Python. The data in the file is deleted when I add data to it again when I do df.to_excel. How can I add new data to the excel file while preserving other data Thanks,
sorry for my bad english
I used This code for add data
def ageGroup(city,age,period):
....
df.to_excel('test.xlsx')
...
for i in range(len(city_list)):
for j in range(len(age_list_)):
ageGroup(city_list[i], age_list_[j], 22)