maxframe.liteframe.LiteFrame.radd#

LiteFrame.radd(other)#

Reverse element-wise addition (other + lf).

Bound to __radd__, so other + lf is equivalent to lf.radd(other).

Parameters:

other (scalar, LiteFrame, or column expression) – Value added to each element of lf from the left.

Returns:

Lazy frame with element-wise sum of other and lf.

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [1, 2]})
>>> result = lf.radd(10)
>>> result.execute()
    a
0  11
1  12

Using reverse +:

>>> result = 10 + lf
>>> result.execute()
    a
0  11
1  12