title: selecting a specific value from a data frame
body: <p>I am trying to select a value from a dataframe. But the problem is the output is with data type and column name. 
  Here is my data frame which i am reading from a csv file,</p>
  
  <pre><code>Name,Code
  blackberry,1
  wineberry,2
  rasberry,1
  blueberry,1
  mulberry,2
  </code></pre>
  
  <p>And here is my testing code-</p>
  
  <pre><code>dataFrame=pd.read_csv("test.csv")
  value = dataFrame.loc[dataFrame['Name'] == 'rasberry']['Code']
  print(value)
  strvalue=str(value)
  if(strvalue=="1"):
      print("got it")
  </code></pre>
  
  <p>The expected ouput of <code>value</code> would be <code>1</code> but it is </p>
  
  <pre><code>2  1\nName: Code, dtype: int64
  </code></pre>
  
  <p>and that's why the if condition is not working. How can I get the specific value?
  I am using <code>pandas</code></p>