Closed ilyagr closed 3 years ago
I would like the following to work:
DataFrame(bad=[1,2], good=[0, 3]) |> @mutate( count = _.bad + _.good, bad_rate = _.bad/_.count, bad_pct =round(_.bad_rate*100;digits=1) )
I don't know a good way to do it currently. I created a forum post asking if anyone else does.
It seems that mutate can create new columns as in this example, but it cannot handle interdependent mutations despite the documentation suggesting it might.
mutate
sorry to intrude here. But shouldn't this be closed?
I would like the following to work:
I don't know a good way to do it currently. I created a forum post asking if anyone else does.