maxframe.liteframe.LiteFrame.lshift#

LiteFrame.lshift(other)#

Element-wise left bit shift (lf << other).

Bound to the << operator (__lshift__), so lf << other is equivalent to lf.lshift(other).

Parameters:

other (scalar, LiteFrame, or column expression) – Number of bit positions to shift left.

Returns:

Lazy frame with each element of lf shifted left by other.

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [1, 2]})
>>> result = lf.lshift(2)
>>> result.execute()
   a
0   4
1   8

Using the << operator:

>>> result = lf << 2
>>> result.execute()
   a
0   4
1   8