title: Label Not In List and KeyError
body: <p>I'm trying to get the value of a specific cell.</p>
  
  <pre><code>  main_id   name  code
    0    1345  Jones    32
    1    1543   Jack    62
    2    9874   Buck    86
    3    2456   Slim    94
  </code></pre>
  
  <p>I want the cell that says code=94, as I already know the main_id but nothing else.</p>
  
  <pre><code>raw_data = {'main_id': ['1345', '1543', '9874', '2456'],
          'name': ['Jones', 'Jack', 'Buck', 'Slim'],
          'code': [32, 62, 86, 94]}
  
      df=pd.DataFrame(raw_data, columns = ['main_id', 'name', 'code'])
  
  
      v=df.loc[str(df['main_id']) == str(2456)]['code'].values
      print(df.loc['name'])
  </code></pre>
  
  <p>The <code>print(df.loc['name'])</code> claims the label is not in index</p>
  
  <p>And the <code>v=df.loc[str(df['main_id']) == str(2456)]['code'].values</code> says 'KeyError False'</p>