It seems to me that someone had to answer this question before, but I can not find the answer to the stack overflow!
I have a dataframe result that looks like this and I want to remove all values ββthat are less than or equal to 10
>>> result Name Value Date 189 Sall 19.0 11/14/15 191 Sam 10.0 11/14/15 192 Richard 21.0 11/14/15 193 Ingrid 4.0 11/14/15
This command works and removes all values ββequal to 10:
df2 = result[result['Value'] != 10]
But when I try to add the <= qualifier, I get the SyntaxError: invalid syntax error
df3 = result[result['Value'] ! <= 10]
I feel that there is probably a very simple solution. Thanks in advance!
source share