Reduce and sum Value ( frequency matrix)

An MWE would help Please read: make it easier to help you

Is this what u mean?

using DataFrames
using DataConvenience: @> 

@> df begin
  groupby(:USER_ID)
  combine( 1:12 .=> sum)
end
1 Like