I am currently using the loc function as:
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)
This returns "B 2" instead of "2" so I can't append that value into my output table as:
output_table['column'][row]=a
How can I get just "2" instead of the header and value?