title: How to append a dataframe to an excel template?
body: <p>I have an <code>xlsx</code> template with some headers and other information, all I want is to fill that sheet with the dataframe without losing the contents of the template. Here's the code I'm using for that:</p>
  
  <pre><code> writer = pd.ExcelWriter('xls/template.xlsx', engine='openpyxl')
   df.to_excel(writer, index=False, sheet_name='Sheet1',startrow=2,header=None)
   writer.save()
  </code></pre>
  
  <p>I read somewhere that, to use a template I must use openpyxl engine in the writer but even then the contents of the template are lost and the dataframe is written after 2 rows. The rows above had some headers before but now they are blank.</p>