This seems like a simple question, but I couldn\'t find it asked before (this and this are close but the answers aren\'t great).
The question is: if I want to searc
You can perform equality comparison on the entire DataFrame:
df[df.eq(var1).any(1)]
Another option is using numpy comparison:
numpy
df[(df.values.ravel() == var1).reshape(df.shape).any(1)]