1

Hi I am trying to get the opposite values to between

I get a few data of this way:

x[x.between(x.quantile(0.25), x.quantile(0.75))]

But I need the opposite data, how can get it?

Thanks

Tlaloc-ES
  • 4,825
  • 7
  • 38
  • 84

1 Answers1

4

You can use the ~ to negate. x[~x.between(x.quantile(0.25), x.quantile(0.75))]

edgarzamora
  • 1,472
  • 1
  • 9
  • 17