-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
filtration chain for DataFrames #11875
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
Comments
How about In [81]: df
Out[81]:
a b c
0 0.778730 0.784767 0.798046
1 0.182564 0.686324 0.431897
2 0.149061 0.290067 0.397787
3 0.749971 0.050980 0.995215
4 0.144524 0.863902 0.973320
5 0.480789 0.492512 0.834956
6 0.251052 0.619787 0.237869
7 0.488043 0.793807 0.314146
8 0.816102 0.615878 0.900229
9 0.111648 0.431056 0.392364
In [82]: df.query('b>.5')
Out[82]:
a b c
0 0.778730 0.784767 0.798046
1 0.182564 0.686324 0.431897
4 0.144524 0.863902 0.973320
6 0.251052 0.619787 0.237869
7 0.488043 0.793807 0.314146
8 0.816102 0.615878 0.900229 |
Good call @MaximilianR. @danfrankj let us know if |
Agreed query should work though clunky at the moment - I assume the issue you're referring to is this one. #3393 |
Hey folks, I keep on coming back to this because
What do y'all think of this example implementation?
|
Take a look at #12539 I think it implements what you're thinking. |
actually this will be merged shortly. I c @TomAugspurger pointed at the issue already! thanks! |
awesome, one step ahead of me. Great stuff guys, thanks! |
Inspired by the R package dplyr I'd like to be able to chain together my data manipulation but can't find an elegant way to do a filter.
For example if I have a group -> aggregate -> filter sequence, I'd do something like this
What I'd like to be able to do is....
This should be a pretty simple addition basically calling DataFrame.apply and happy to open a PR for it but wanted to see what you guys thought about this?
The text was updated successfully, but these errors were encountered: