EDIT: Fixed values in tables.
Let\'s say I have a pandas dataframe df:
>>>df a b c 0 0.016367 0.
Since the logical operators are not overridable in python, numpy and pandas override the bitwise operators.
This means you need to use the bitwise-or operator:
df[(df > 0.5) | (df < 0)]