title: Pandas DataFrame to Excel cell alignment
body: <p>I noticed that for <code>string</code> in <code>Dataframe</code> will keep left align in Excel and for <code>numerical</code> value will keep right align in Excel.</p>
  <p>How do we set the desired alignment we wanted when exporting <code>DataFrame</code> to Excel? Example: <code>Center Alignment</code></p>
  <pre><code>df = pd.DataFrame({&quot;colname1&quot;: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;d&quot;], &quot;colname2&quot;: [1,2,3,4]})
  
  with pd.ExcelWriter(&quot;test.xlsx&quot;) as writer:
      df.to_excel(
          writer,
          index=False,
          header=False,
      )
  </code></pre>