maxframe.liteframe.LiteFrame.floordiv#
- LiteFrame.floordiv(other)#
Element-wise floor division (
lf // other).Bound to the
//operator (__floordiv__), solf // otheris equivalent tolf.floordiv(other).- Parameters:
other (scalar, LiteFrame, or column expression) – Value to floor-divide each element of
lfby.- Returns:
Lazy frame with element-wise floored quotient of
lfandother.- Return type:
Examples
>>> import maxframe.liteframe as mlf >>> lf = mlf.LiteFrame({'a': [7, 9]}) >>> result = lf.floordiv(2) >>> result.execute() a 0 3 1 4
Using the
//operator:>>> result = lf // 2 >>> result.execute() a 0 3 1 4