title: Pandas Write to Excel rearranging columns based on alphabetic order
body: <p>I have a python dict that has the format</p>
  
  <pre><code>dict = {
          D:""
          B:""
          A:""
          C:""
  }
  </code></pre>
  
  <p>However, when I write this dict to a csv file in excel, the columns are rearranged to </p>
  
  <pre><code>A B C D
  </code></pre>
  
  <p>How do I keep the order of my dict in python when I write to excel?</p>
  
  <pre><code>    writer = pd.ExcelWriter('list_of_detected_words.xlsx', engine='xlsxwriter')
      list_of_detected_words = pd.DataFrame.from_records(form_info)
      list_of_detected_words.to_excel(writer, "Sheet1",startrow=1)
  </code></pre>
  
  <p>Above is the code that writes to excel. </p>