-
Notifications
You must be signed in to change notification settings - Fork 59
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
ENH: Allow chained splitting of different fields #680
Labels
enhancement
New feature or request
Comments
This would allow you to do something like: node.split(a=[1, 2])
if cond:
node.split(b=[3, 4]) instead of if cond:
node.split(a=[1, 2])
else:
node.split(a=[1, 2], b=[3, 4]) or splits = {'a': [1, 2]}
if cond:
splits['b'] = [3, 4]
node.split(**splits) As long as splits are "outer" by default, there is no ambiguity in adding splits sequentially. A downstream node is already split by its upstream nodes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would you like changed/added and why?
Would like to support chained splitting, i.e. for
to be equivalent to
What would be the benefit? Does the change make something easier to use?
More flexible syntax made available to the end user
The text was updated successfully, but these errors were encountered: