Skip to content
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

@rtransform! and @rselect! aren't actually modifying dataframe #293

Closed
pdeffebach opened this issue Sep 7, 2021 · 0 comments · Fixed by #294
Closed

@rtransform! and @rselect! aren't actually modifying dataframe #293

pdeffebach opened this issue Sep 7, 2021 · 0 comments · Fixed by #294
Assignees
Labels

Comments

@pdeffebach
Copy link
Collaborator

julia> df = DataFrame(a = 1, b = 2)
1×2 DataFrame
 Row │ a      b     
     │ Int64  Int64 
─────┼──────────────
   1 │     1      2

julia> xx = ["a", "b"];

julia> for x in xx
           @rtransform! df $x = $x + 100
       end

julia> df
1×2 DataFrame
 Row │ a      b     
     │ Int64  Int64 
─────┼──────────────
   1 │     1      2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants