DB_Column.^
^other
Group: Operators
Aliases: power
Documentation
Element-wise raising to the power.
Returns a column containing the result of raising each element of self
by other
.
Arguments
other
: The exponent to raiseself
by. Ifother
is a column, the power operation is performed pairwise between corresponding elements ofself
andother
.
Examples
Squares the elements of one column.
import Standard.Examples
example_div = Examples.decimal_column ^ 2
Raises each value in a column by the value in another column.
import Standard.Examples
example_div = Examples.decimal_column ^ Examples.integer_column
Remarks
Arithmetic Overflow
For integer columns, the operation may yield results that will not fit
into the range supported by the column. In such case, the in-memory
backend will replace such results with Nothing
and report a
Arithmetic_Overflow
warning. The behaviour in Database backends is
not specified and will depend on the particular database - it may
cause a hard error, the value may be truncated or wrap-around etc.