> df = DataFrame(A=rand(10), B=rand(10))
> df[:C] = df[:A] .+ df[:B]

does the trick in DataFrames v0.5.4.

On Thursday, May 15, 2014 7:59:54 PM UTC-7, Jason Solack wrote:
>
> So i feel like this a simple question, but i can't find reference to it.  
>
> Lets say i have a DataFrame with columns A and B and i want to add a new 
> column C that is A+B.  How would i do that?
>
> Sorry if i'm overlooking an easy answer!
>
> jason
>

Reply via email to