title: KeyError: u'no item named <name>'
body: <p>I have this function which places data into another dataframe.  </p>
  
  <pre><code>def set_var(self,navn,periode,value):
      try:
          if navn.upper() not in self.data:
              self.data[navn.upper()]=NaN
          self.data[navn.upper()].ix[periode]=value
      except:
          print('&gt; fejl ved genmning af:',navn,'i',periode)
          print( self.data[navn.upper()])
      return
  </code></pre>
  
  <p>which I then iterate like this, this fill with data:</p>
  
  <pre><code>for idx, val in enumerate(bd):
      if val not in ('Navn','Type','Aarstal','Referenceperiode','Registreringsnummer','nummer','navn','navn1','period', 'regnr'):
          for row in bd.itertuples():
              banker.set_var((str(row[6])+'_'+str(val)),row[60], row[idx+1])
  </code></pre>
  
  <p>I get the error: <code>KeyError: u'no item named &lt;name of first item I try to insert&gt;'</code></p>
  
  <p>Why is this?</p>