use
@chain data begin
gatherby(:id, eachrow=true)
transpose((2:ncol(data)-1, 3:ncol(data)))
gatherby(r"_c")
combine(1=>length)
end
use
@chain data begin
gatherby(:id, eachrow=true)
transpose((2:ncol(data)-1, 3:ncol(data)))
gatherby(r"_c")
combine(1=>length)
end