maxframe.liteframe.LiteFrame.pow#
- LiteFrame.pow(other)#
Element-wise exponentiation (
lf ** other).Bound to the
**operator (__pow__), solf ** otheris equivalent tolf.pow(other).- Parameters:
other (scalar, LiteFrame, or column expression) – Exponent applied to each element of
lf.- Returns:
Lazy frame with each element of
lfraised to the powerother.- Return type:
Examples
>>> import maxframe.liteframe as mlf >>> lf = mlf.LiteFrame({'a': [2, 3]}) >>> result = lf.pow(2) >>> result.execute() a 0 4 1 9
Using the
**operator:>>> result = lf ** 2 >>> result.execute() a 0 4 1 9