How to `combine` row vectors

The following works:

julia> DataFrames.combine(gdf, 2:3 .=> Ref∘sum)
2×3 DataFrame
 Row │ group   v1_Ref_sum  v2_Ref_sum 
     │ String  Array…      Array…     
─────┼────────────────────────────────
   1 │ A       [4, 6]      [4, 6]
   2 │ B       [12, 14]    [12, 14]

But there does seem to be some conceptual problem.

4 Likes