DataFramesMeta.jl icon indicating copy to clipboard operation
DataFramesMeta.jl copied to clipboard

Error in the @by example in the documentation

Open sbacelar opened this issue 8 months ago • 1 comments

The example of @by in the documentation gives an error: ERROR: ArgumentError: column :x in returned data frame is not equal to grouping key :x Maybe it was better :y_sum = sum(:y)

using DataFrames
using DataFramesMeta

df = DataFrame(x = [1, 1, 2, 2], y = [1, 2, 101, 102]);
@by df :x begin
           :x = sum(:y)
           end

sbacelar avatar Jun 04 '24 15:06 sbacelar