-
Notifications
You must be signed in to change notification settings - Fork 143
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
Enable Workflow.transform
to be run with a DataFrame type
#1777
Conversation
3f4bcf4
to
d65e9ce
Compare
It looks like the failing test is an unrelated Horovod issue—seems like we’ve been seeing a lot of failures from those tests lately, not sure why. Beyond the failing test, what else would prevent us from merging this as is? |
I haven't looked into the details of why the horovod tests are failing regularly either. Seems like we have an unstable test there. From a functionality perspective, I think the PR achieves the goal of being able to run the transform on a dataframe. I'm on the fence about whether the use of singledispatch here is clearer to read than the if statements I added initially to the body of the transform method, I suppose if makes it easier to add more types in future if we anticipate more we'd like to add. |
Yeah, I’m with you on readability. Two things I can think of:
|
I started to revert back toward the if/else style and I had the feeling that, on balance, sticking with singledistpatchmethod might be ok in the end in terms of readability here. Makes it easier to reason about the inputs and outputs to each registered transform implementation. Either way the docstring of Once we've merged this use of the private method |
Enable
Workflow.transform
to be run with a DataFrame type.