I feel like this question must have been answered by someone before, but I can\'t find an answer on stack overflow!
I have a dataframe result that looks
result
Instead of this
df3 = result[result['Value'] ! <= 10]
Use
df3 = result[~(result['Value'] <= 10)]
It will work. OR simply use
df3 = result[result['Value'] > 10]