Just remembered that no numpy function does this, and so we collapse axes into one for those kinds of aggregations.