0

I didn't find any solution in other posts. I need to write datframes in an existing sheet of a xlsx file, but of course it overwrites the whole file. How to do it?

writer = pd.ExcelWriter('test.xlsx',engine='openpyxl')
df.to_excel(writer,sheet_name='test2',startcol=10,startrow=20)
writer.save()

Thanks

user9187374
  • 299
  • 1
  • 3
  • 11

0 Answers0