-
Notifications
You must be signed in to change notification settings - Fork 104
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
Feature request: "target ~ ." syntax #10
Comments
Just came to file this same request, so +1 |
+1 |
+1 to this feature |
This feature would be great! |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
I haven't had a chance to read through the code entirely: This looks like it'd be a new kind of PYTHON_EXPR. https://github.com/pydata/patsy/blob/master/patsy/parse_formula.py#L68 And then maybe some code here would need to be modified - not sure of this: |
It should probably be a new token type,
#28 ended up not getting merged, but if anyone's interested in having a go at implementing this, then there's some discussion there of the right way to do it. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1000 |
This feature would make things easy, +1 |
Yes! Could not agree more.
|
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+2 |
+1 |
Please don't ping this issue with "+1" comments: hit 👍 on the first post instead. As @njsmith wrote above, this is open to pull requests by an interested party. Pinging this issue will not make it happen any faster :). |
++ |
I'd like to use patsy to drive code other than "model.matrix". In R you can write |
++ such a useful functionality |
++ |
++++++++++++++++ |
|
R lets you regress a target against all the variables in the dataframe by simply typing "target ~ ."
This is particularly useful when we have lots of columns and don't want to specify each predictor. I don't think patsy supports this yet. Any chance if it can be added? Thanks.
The text was updated successfully, but these errors were encountered: