maxframe.liteframe.LiteFrame.rmul#

LiteFrame.rmul(other)#

Reverse element-wise multiplication (other * lf).

Bound to __rmul__, so other * lf is equivalent to lf.rmul(other).

Parameters:

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

Returns:

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

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [2, 3]})
>>> result = lf.rmul(4)
>>> result.execute()
    a
0   8
1  12

Using reverse *:

>>> result = 4 * lf
>>> result.execute()
    a
0   8
1  12