

def _reduction_format(translator, func_name, arg, where):
    if (where is not None):
        case = where.ifelse(arg, ibis.NA)
        arg = translator.translate(case)
    else:
        arg = translator.translate(arg)
    return '{0!s}({1!s})'.format(func_name, arg)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _reduction_format/original