How to use the datatable.expr.expr.Expr function in datatable

To help you get started, we’ve selected a few datatable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github h2oai / datatable / datatable / expr / reduce.py View on Github external
def cov(expr1, expr2):
    return Expr(OpCodes.COV, (expr1, expr2))
github h2oai / datatable / datatable / expr / expr.py View on Github external
def __sub__(self, other):
        return Expr(OpCodes.MINUS, (self, other))
github h2oai / datatable / datatable / expr / reduce.py View on Github external
def sd(expr):
    return Expr(OpCodes.STDEV, (expr,))
github h2oai / datatable / datatable / expr / reduce.py View on Github external
def count(iterable=None):
    if isinstance(iterable, Expr):
        return Expr(OpCodes.COUNT, (iterable,))
    elif iterable is None:
        return Expr(OpCodes.COUNT0, ())
    else:
        return _builtin_sum((x is not None) for x in iterable)
github h2oai / datatable / datatable / expr / expr.py View on Github external
def __rshift__(self, other):
        return Expr(OpCodes.RSHIFT, (self, other))
github h2oai / datatable / datatable / expr / expr.py View on Github external
def __gt__(self, other):
        return Expr(OpCodes.GT, (self, other))
github h2oai / datatable / datatable / expr / expr.py View on Github external
def remove(self, other):
        return Expr(OpCodes.SETMINUS, (self, other))
github h2oai / datatable / datatable / expr / expr.py View on Github external
def __ge__(self, other):
        return Expr(OpCodes.GE, (self, other))
github h2oai / datatable / datatable / expr / reduce.py View on Github external
def last(iterable):
    if isinstance(iterable, Expr):
        return Expr(OpCodes.LAST, (iterable,))
    else:
        try:
            for x in reversed(iterable):
                return x
        except TypeError:
            # Some iterators may not be reversible
            x = None
            for x in iterable:
                pass
            return x
github h2oai / datatable / datatable / expr / expr.py View on Github external
def __floordiv__(self, other):
        return Expr(OpCodes.INTDIV, (self, other))