-
Notifications
You must be signed in to change notification settings - Fork 370
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
Revisit spreading for AsTable
output`
#3408
Comments
The design is to:
Example:
The question is how to reflect this in DataFramesMeta.jl. |
Hmmm... I don't love the performance hit that would come with constructing a I wonder if it's best for DataFramesMeta.jl to do the broadcasting on their own. However your response is a bit confusing
since currently returning |
Yes, because |
Also I think that the performance hit, although noticeable, for most users would be a minor issue. The major issue, is, as you write, that |
Are there other advantages of making a I don't really want to have to introduce both |
I do not think so. The other would be making column names unique, but I guess it is not an issue in your case. |
Here is a use-case where DataFrames.jl compares unfavorably to dplyr.
Basically, the best way to do inter-dependent column transformations is to use
AsTable
and return aNamedTuple
. However in OP's example, they want to return a scalar and a vector simultaneously. SoAsTable
isn't an option without some awkward spreading of their scalar.Maybe we can spread scalar outputs when an
AsTable
is thedest
?The text was updated successfully, but these errors were encountered: