I want to compare value with string
i did
df = df[df.s1 != 'NON eq']
I was gotting this error ValueError: operand '!=' not supported for string comparison
I want to compare value with string
i did
df = df[df.s1 != 'NON eq']
I was gotting this error ValueError: operand '!=' not supported for string comparison
Use this instead :
df = df[~(df.s1 == 'NON eq')]
I found this solution here (seems to be the same problem).
I cannot tell what is causing the problem because the error did not reproduce (worked with !=
) when I tested it (https://replit.com/astroide/vaex-test if you want to see).