-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set operations fail with filter #436
Comments
Hey, thanks for raising -- from siuba.data import mtcars
mtcars.cyl.isin([4, 5]) So for siuba verbs it would be this: from siuba import _, filter
from siuba.data import mtcars
mtcars >> filter(_.cyl.isin([4, 5])) Sorry for the weird R -> python situation, I'm actively working on pushing out new siuba docs that walk through situations like these numeric python quirks:
|
Hi Michael,
This typically works with lambda functions, so I assumed that your package would vectorize it |
You could use .map with siuba, but AFAICT that code in pandas will be a slower version of
Does that do what you're looking for? If there's a case where |
|
I am trying to use siuba for filtering on a set, and it seems to fail badly:
mtcars >> filter(_.cyl in {4, 5})
returns nothing, whilemtcars >> filter(_.cyl == 4)
worksThe text was updated successfully, but these errors were encountered: