title: Read CSV file and write function result in another one
body: <p>I have a CSV file on which one I would like to make a process and save the result to an output.csv file.</p>
  
  <p>This is my customer.csv file :</p>
  
  <pre><code>id, email, first_name, last_name, institution, creation_date, modification_date, country
  1;tar.ber@test.eu;tar;ber;EDTG,TGD;;;
  2;val.dzz@test.eu;var;dzz;Test with , inside;;;
  ...
  </code></pre>
  
  <p>Some institution field have <code>,</code> inside. So I would like to set <code>" "</code> around each institution field.</p>
  
  <pre><code>#Input data
  1;tar.ber@test.eu;tar;ber;EDTG,TGD;;;
  2;val.dzz@test.eu;var;dzz;Test with , inside;;;
  
  #Output data
  1;tar.ber@test.eu;tar;ber;"EDTG,TGD";;;
  2;val.dzz@test.eu;var;dzz;"Test with , inside";;;
  </code></pre>
  
  <p>This is my code :</p>
  
  <pre><code>import csv
  import re
  
  with open('customer.csv', 'r') as csvFile:
      reader = csv.reader(csvFile, delimiter=";")
      writer = csv.writer(open("output.csv", 'w'))
      for row in reader:
          id = row[0]
          email= row[1]
          first_name = row[2] 
          last_name = row[3] 
          institution = row[4]
          modification_date = row[5]
          country = row[6] 
          creation_date = row[7]
          writer.writerow(id+';'+email+';'+first_name+';'+last_name+';"'+institution+'";'+modification_date+';'+country+';'+creation_date)
  </code></pre>
  
  <p>In my Terminal it gives me :</p>
  
  <pre><code>1;tar.ber@test.eu;tar;ber;"EDTG,TGD";;;
  2;val.dzz@test.eu;var;dzz;"Test with , inside";;;
  </code></pre>
  
  <p>But in my output.csv file, I get :</p>
  
  <pre><code>1,;,t,a,r,.,b,e,r,@,t,e,s,t,.,e,u,;,t,a,r,;,b,e,r,;,"""",E,D,T,G,,T,G,D,"""",;,;,;
  </code></pre>
  
  <p>I don't understand why ?</p>