title: export dictionary to csv file
body: <p>I have a dictionary that looks like this</p>
  
  <pre><code>file = {"Formations" : ["some1","some2","some3"], "Depth": [1,2,3] }
  </code></pre>
  
  <p>I want "Formation" and "Depth" to be the header, and want the file to be listed vertically in my output csv file. So,</p>
  
  <pre><code>Formations       Depth
    some1            1 
    some2            2
    some3            3
  </code></pre>
  
  <p>something like this. </p>
  
  <p>How can this be done? Its ok that I convert depth list [1,2,3] into a string list, like ["1", "2", "3"], if thats necessary.</p>
  
  <hr>
  
  <p>To COLDSPEED, this is how it looks like in the output file.</p>
  
  <pre><code>Formations           Depth
    (blank)           (blank) 
     some1               1
    (blank)           (blank)
     some2               2
    (blank)           (blank)
     some3               3
  </code></pre>
  
  <p>(blank) here just denotes empty line with nothing. How can I fix this?</p>