since this is getting cast to an array in a few lines, and you know the size of the array (length of ``group_rhos``), preallocate with ``numpy.zeros``