-
Notifications
You must be signed in to change notification settings - Fork 55
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
Allow reference to previously defined columns in @transform #388
Comments
The reason is that, in general, operations:
and
could be executed in parallel, so However, DataFramesMeta.jl could split this single |
Yes, this would be nice. However DataFramesMeta.jl is restricted by how There is a work-around using the
as well as
We don't have
So when you need interdependent variables, I recommend wither Final note: You are aware of |
Ah that's great; I didn't realize I do wonder about @bkamins' suggestion of implementing @Transform with multiple transform calls. But perhaps this a substantial performance cost---as far as I know DataFrames doesn't try to parallelize within transform calls, so that doesn't seem like an issue to me. And yes, I have m-tab bound to |
yeah a doc fix might be good. Do you want to start a PR (It's not a big deal, though, I can do it!) I don't think I'm too concerned about the performance cost. Interested parties can always write a Not to put the burden on @bkamins , but a keyword argument in I do think |
It is not the issue of the burden, as we already have |
Ah, I wasn't aware that transform was threaded by default. That's neat! In that case I retract the request; it definitely doesn't make sense to have different semantics based on the threads keyword. I do think adding an example of using a previously defined column using @astable would be great though. |
I don't think this really warrants setting up a fork. Here's a suggestion to add to the docs:
|
This might be too big of an ask, but in dplyr we can do this
that is, defining z and then using it in the same mutate call.
But is not possible with
@transform
. It would be very nice to be able to doIs there a reason this isn't supported?
The text was updated successfully, but these errors were encountered: