I am searching for a particular name in column 'names' and its value. for e.g, I want to search for string 'pqr' in column 'names' and get its values from 'Total' column, which is 304 so the final output is 304.
Input:
names Total
0 abc 186
1 xyz 545
2 pqr 304
3 lmn 405
4 def 0