Take this csv as an example:
Col1, Col2
1,3,
0,5,
1,4
0,7
Say that I have a list, and I want to append the values of Col2 to the list only if the value of Col1 in the same row is 1. The resulting list should be [3,4].
How can I do this with pandas without using iterrows()?