0

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
  • 3,690
  • 5
  • 26
  • 62

1 Answers1

3

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

edgarzamora
  • 1,382
  • 1
  • 8
  • 17