maxframe.liteframe.LiteFrame.mod#
- LiteFrame.mod(other)#
Element-wise modulo (
lf % other).Bound to the
%operator (__mod__), solf % otheris equivalent tolf.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
lfdivided byother.- Return type:
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