I have created the below dataframe:
      C1     C2  Count
0   Jack  Item1     20
1  Jones  Item1     15
I am trying to search for the second row with person name Jones using the below command and trying to fetch the count 15.
person_inq="Jones"
item_inq="Item1"    
count_in_df = df.loc[(df['C1'] == person_inq) & (df['C2'] == item_inq),'Count'][0]
While executing the above command, i am getting key
KeyError: 0
 
    