maxframe.liteframe.LiteFrame.add#

LiteFrame.add(other)#

Element-wise addition of other to the LiteFrame.

Bound to the + operator (__add__), so lf + other is equivalent to lf.add(other).

Parameters:

other (scalar, LiteFrame, or column expression) – Value to add to each element of lf.

Returns:

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

Return type:

LiteFrame

Examples

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

Using the + operator:

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