maxframe.liteframe.LiteFrame.rsub#
- LiteFrame.rsub(other)#
Reverse element-wise subtraction (
other - lf).Bound to
__rsub__, soother - lfis equivalent tolf.rsub(other).- Parameters:
other (scalar, LiteFrame, or column expression) – Value from which each element of
lfis subtracted.- Returns:
Lazy frame with element-wise difference of
otherandlf.- Return type:
Examples
>>> import maxframe.liteframe as mlf >>> lf = mlf.LiteFrame({'a': [1, 2]}) >>> result = lf.rsub(10) >>> result.execute() a 0 9 1 8
Using reverse
-:>>> result = 10 - lf >>> result.execute() a 0 9 1 8