title: How to append header to the data in csv file created by python dataframe
body: <p>I have data available in a dataframe</p>
  
  <pre><code>EMP_ID,EMP_NAME,AGE
  1,X,71
  2,Y,70
  3,Z,78
  </code></pre>
  
  <p>How can i convert above data into below format </p>
  
  <pre><code>EMP_ID:1|EMP_NAME:X|AGE:71
  EMP_ID:2|EMP_NAME:Y|AGE:70
  EMP_ID:3|EMP_NAME:Z|AGE:78
  </code></pre>
  
  #
  
  <p>Viceversa Scenario:</p>
  
  <p>Can we convert the below data </p>
  
  <pre><code>EMP_ID:1|EMP_NAME:X|AGE:71
  EMP_ID:2|EMP_NAME:Y|AGE:70
  EMP_ID:3|EMP_NAME:Z|AGE:78
  </code></pre>
  
  <p>again back to </p>
  
  <pre><code>EMP_ID,EMP_NAME,AGE
  1,X,71
  2,Y,70
  3,Z,78
  </code></pre>