title: Find value in DataFrame using conditions
body: <p>I am currently using the loc function as: </p>
  
  <pre><code>    import numpy as np
      import pandas as pd
      df = pd.DataFrame({"A": [1,2,3], "B": [2,3,4]})
  
      a=df.loc[(df.A==1), ['B']]
      print(a)
  </code></pre>
  
  <p>This returns "B  2" instead of "2" so I can't append that value into my output table as:  </p>
  
  <pre><code>   output_table['column'][row]=a
  </code></pre>
  
  <p>How can I get just "2" instead of the header and value?</p>