kieferk / dfply

dplyr-style piping operations for pandas dataframes
GNU General Public License v3.0
889 stars 103 forks source link

mutate not support the new variables that created above #107

Open slsongge opened 2 years ago

slsongge commented 2 years ago

in R: A is not in df, but it can run df %>% mutate(A = a, B = A)

but, df >> mutate(A = a, B = A) error: name 'A' is not defined

Is this feature supported now?

josemou8 commented 2 years ago

You can try like this df >> mutate(A = a) >> mutate(B = A)

slsongge commented 1 year ago

good idea

---Original--- From: @.> Date: Sun, May 8, 2022 15:23 PM To: @.>; Cc: @.**@.>; Subject: Re: [kieferk/dfply] mutate not support the new variables that created above (Issue #107)

You can try like this df >> mutate(A = a) >> muate(B = A)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>