def aggregate_mean(aggregate):
    """Calculate the mean over all the cols of a ResponseAggregate."""
    if len(aggregate) == 0:
        return 0
    total = 0
    for col in aggregate:
        total += sum(col)
    return total/len(aggregate)