title: Python KeyError from CSV data file
body: <p>I receive this error:</p>
  
  <pre><code>line 121, in &lt;module&gt;
      data=convertData(data,header)
  line 86, in convertData 
      Data.append([row[item] for item in header])
  KeyError: 'ELEM'
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>def convertData(data,header):
      Data=[]
      for row in data:
          Data.append([row[item] for item in header])   !line 86
      return Data
  
  data=convertData(data,header)       !line 121
  writeTable(data,header,'%s %s Data' % (line,lc),'table%s%s.tex' % (line,lc))
  </code></pre>
  
  <p>The data and header are from a *.csv file.  A sample of the .csv data is:</p>
  
  <pre><code>ELEM  EType     OD      T       Tc      
  1     16        2.375   0.462   0.462
  </code></pre>
  
  <p>I am not sure what the problem is.  Can anyone help me?  Thank you.</p>