Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.07 KB

File metadata and controls

33 lines (23 loc) · 1.07 KB
.. xmethod:: datatable.FExpr.__rshift__
    :src: src/core/expr/fbinary/bitwise_shift.cc PyFExpr::nb__rshift__

    __rshift__(x, y)
    --

    Shift `x` by `y` bits to the right, i.e. ``x >> y``. Mathematically this
    is equivalent to :math:`\lfloor x\cdot 2^{-y} \rfloor`.

    If `x` or `y` are multi-column expressions, then they must have the
    same number of columns, and the ``>>`` operator will be applied to each
    corresponding pair of columns. If either `x` or `y` are single-column
    while the other is multi-column, then the single-column expression
    will be repeated to the same number of columns as its opponent.

    The left-shift operator can only be applied to integer columns,
    and the resulting column will have the same stype as its argument.


    Parameters
    ----------
    x, y: FExpr
        The arguments must be either `FExpr`s, or expressions that can be
        converted into `FExpr`s.

    return: FExpr
        An expression that evaluates ``x >> y``.


    See also
    --------
    - :meth:`__lshift__(x, y) <dt.FExpr.__lshift__>` -- left shift.