sliced.base.grouped_sum

sliced.base.grouped_sum(array, groups)[source]

Sums an array by groups. Groups are assumed to be contiguous by row.