4.7.7.1.1.3. statsmodels.tools.grouputils.group_sums

statsmodels.tools.grouputils.group_sums(x, group, use_bincount=True)[source]

simple bincount version, again

group
: array, integer
assumed to be consecutive integers

no dtype checking because I want to raise in that case

uses loop over columns of x

for comparison, simple python loop