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