Exemplo n.º 1
0
def nunique(arg):
    """
    Shorthand for foo.distinct().count(); computing the number of unique
    values in an array.
    """
    return _ops.CountDistinct(arg).to_expr()
Exemplo n.º 2
0
    def nunique(self,
                where: ir.BooleanValue | None = None) -> ir.IntegerScalar:
        import ibis.expr.operations as ops

        return ops.CountDistinct(self, where).to_expr().name("nunique")