maxframe.liteframe.LiteFrame.add#
- LiteFrame.add(other)#
Element-wise addition of
otherto the LiteFrame.Bound to the
+operator (__add__), solf + otheris equivalent tolf.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
lfandother.- Return type:
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