Given the following example.
d = {'col1': [1, 2, 3], 'col2': [6, 7]}
df = pd.DataFrame(data=d)
df
col1 col2
0 1 6
1 2 7
newdf[df['col1' ==2]
newdf
col1 col2
0 2 7
Works just fine for single col
but
newdf[df['col1' ==2 & 'col2' == 7]
I win error prize.