-
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
ByRow without columns #2457
Comments
It was considered. The reason why it is not allowed is that Actually your example was the only use-case I could come-up with that would be useful and I thought that it is not worth to break the design to handle it. Technically it would be possible to work around this and add this support but I was not sure if it is worth it. What do you think? |
I would like it. I was working on a problem set the other day where I wanted to generate random numbers for error terms. This actually seems quite hard to fix! we have to catch the combination of |
It will also make DataFramesMeta a lot easier in case you see something with the yet-to-be-implemented
This will get lowered to
which will error. |
If we add it (I will add it then) we have to hard-code this in every function that potentially might call Note that |
Yes, exactly. Ideally macro-packages will make it as easy to work row-wise
and col-wise (that's the point of PairsMacros at least), and so people do
end up writing `@rows y = 1`. I don't think that needs to be done before
1.0, but it's certainly something that would be nice to have someday.
…On Tue, Sep 29, 2020 at 6:39 AM pdeffebach ***@***.***> wrote:
It will also make DataFramesMeta a lot easier in case you see something
with the yet-to-be-implemented @Row macro
@Transform(df, @Row y = 7)
This will get lowered to
transform(df, [] => ByRow(_f) => :y)
which will error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2457 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/ABPPPXO5VOKSGWVYMP5Y2Z3SIHPQLANCNFSM4R5AKFRQ>
.
|
Would it be possible at some point to use DataFrames
ByRow
without columns? This would allow one to do things like:The text was updated successfully, but these errors were encountered: