maxframe.liteframe.LiteFrame.mod#

LiteFrame.mod(other)#

Element-wise modulo (lf % other).

Bound to the % operator (__mod__), so lf % other is equivalent to lf.mod(other).

Parameters:

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

Returns:

Lazy frame with element-wise remainder of lf divided by other.

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [7, 9]})
>>> result = lf.mod(3)
>>> result.execute()
   a
0  1
1  0

Using the % operator:

>>> result = lf % 3
>>> result.execute()
   a
0  1
1  0