title: How to access another column's value from a given id number in pandas DataFrame?
body: <p>I have following format of DataFrame:</p>
  <pre><code># import pandas library
  import pandas as pd
    
  # Creating a dictionary
  d = {'id': ['a', 'b', 'c'],
       'label': ['bal', 'sal', 'tal'], 
       } 
    
  # Creating a Dataframe
  df = pd.DataFrame(d) 
    
  # show the dataframe
  print(df) 
  </code></pre>
  <blockquote>
  <p>Output:</p>
  </blockquote>
  <pre><code>  id label
  0  a   bal
  1  b   sal
  2  c   tal
  </code></pre>
  <p>I have <code>id = 'b'</code>. Now I want to access the corresponding <code>label</code> value like <code>label = 'sal'</code>.</p>
  <p>How can I do this?</p>