-
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
Add the @rename
macro
#204
Comments
Thanks! This will be good to add pre 1.0. |
Bumping this. Current struggling to rename something programmatically in |
@pdeffebach would something silly like this be acceptable?
|
Hi, @pdeffebach. I want to bump this to discuss the design. Should the final version of
Please let me know what you think! |
Yes. I guess
and of course `@rename df $(:x => :y) |
To make sure I'm understanding this correctly, would the
|
No. see the
|
Got it, thanks. I currently have the following:
however, arbitrary RHS expressions need to be escaped. Further, arbitrary RHS expressions can not be mixed with other standard expressions. For example
errors in the same manner as
Which I think makes sense if this implementation is to rely on |
The error above is because all the old names need to be the same type and all the new names need to be the same type. Just cast everything to
|
It's not strictly necessary, because
DataFrames.rename
exists, but it is nice to have the keyword argument form.The text was updated successfully, but these errors were encountered: