[Numpy-discussion] Advice please on efficient subtotal function