Most operations in pandas can be accomplished with operator chaining (groupby, aggregate, apply, etc), but the only way I
pandas
groupby
aggregate
apply
You can also leverage the numpy library for logical operations. Its pretty fast.
df[np.logical_and(df['A'] == 1 ,df['B'] == 6)]