def METHOD_NAME(result):
    totalSum = 0.0;
    numDone = 0;
    for i in range(0, len(result)):
        if (result[i][0] != "" and result[i][1] != "NaN"):
            totalSum += math.log(result[i][1]);
            numDone += 1;
    if (numDone == 0):
        return "NaN";
    total = totalSum * (1.0 / numDone);
    return str(math.exp(total));