maxframe.liteframe.LiteFrame.lshift#
- LiteFrame.lshift(other)#
Element-wise left bit shift (
lf << other).Bound to the
<<operator (__lshift__), solf << otheris equivalent tolf.lshift(other).- Parameters:
other (scalar, LiteFrame, or column expression) – Number of bit positions to shift left.
- Returns:
Lazy frame with each element of
lfshifted left byother.- Return type:
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