I have the dataframe shown below. I need to get the scalar value of column B, dependent on the value of A (which is a variable in my script). I\'m trying the loc() function
elaborating on @ShineZhang comment:
x.set_index('A').at[2, 'B']
6
pd.__version__
u'0.22.0'