How can I get a value from a cell based on a value of another cell of the same row? For example, let's say I have the following dataframe:
A C D
0 foo1 0 0
1 foo2 2 4
2 foo3 9 8
3 foo4 6 12
4 foo5 7 14
How can I grab the value from column C of the row that has foo3 in column A? In this example, it is 9. I am using Pandas with Python.