This question is very related to another, and I\'ll even use the example from the very helpful accepted solution on that question. Here\'s the example from the acce
You can do this with tiny altering in your code:
print(df[df['A'] == 'foo'][df['B'] == 'one'])
Output:
A B C D 0 foo one 0 0 6 foo one 6 12