title: Python: Convert dictionary keys into csv headers and values into rows
body: <p>Hi programmers of the internet, </p>
  
  <p>I'm fairly new into programming, and I'm trying to export data into a csv but there's a field on the json that the api returns which is a list containing several dictionaries.</p>
  
  <p>This is what the field look like:</p>
  
  <pre><code>[{'field': 'custom_fields_41691425', 'value': 'tag_44'},
   {'field': 'comment_value_html',
    'value': '&lt;p&gt;Example comment&lt;/p&gt;'}]
  </code></pre>
  
  <p>And herer is what I get when I open it with excel.</p>
  
  <p><img src="https://i.stack.imgur.com/47IX2.png" alt="here"></p>
  
  <p>I'd like to get this estructure in excel:</p>
  
  <pre><code>HEADER     custom_fields_41691425  | comment_value_html
  2nd row:   tag_44                  | &lt;p&gt;Example comment&lt;/p&gt;
  </code></pre>
  
  <p>Is there any way to achieve this? Any help would be greatly appreciated.</p>
  
  <p>Best regards.</p>