0

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

biwia
  • 407
  • 1
  • 4
  • 10
  • Which version of vaex do you have? I believe this is fixed in the latest release - might be worth updating if that is possible. – Joco Jun 13 '21 at 20:55

1 Answers1

0

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).

astroide
  • 807
  • 4
  • 16
  • Please explain why is your given code working and the one given in the question does not – CoolCoder Jun 04 '21 at 15:06
  • @CoolCoder I've tried to find it, but installation of `vaex` on my computer failed (import error related to a `.so` file not having `____chkstk_darwin` symbol), so I cannot reproduce the error myself. – astroide Jun 04 '21 at 15:32