def nth(arg, k): """ Analytic operation computing nth value from start of sequence Parameters ---------- arg : array expression k : int Desired rank value Returns ------- nth : type of argument """ return _ops.NthValue(arg, k).to_expr()
def nth(self, n: int | ir.IntegerValue) -> Column: """Return the `n`th value over a window. Parameters ---------- n Desired rank value Returns ------- Column The nth value over a window """ import ibis.expr.operations as ops return ops.NthValue(self, n).to_expr()