Skip to main content

Column.*

*other

Group: Operators
Aliases: multiply, product, times

Documentation

Element-wise multiplication.

Returns a column containing the result of multiplying each element of self by other.

Arguments

  • other: The value to multiply self by. If other is a column, the multiplication is performed pairwise between corresponding elements of self and other.

Examples

Multiply the elements of two columns together.

      import Standard.Examples

example_mul = Examples.decimal_column * Examples.integer_column

Multiply each value in a column by a single value.

      import Standard.Examples

example_mul = Examples.integer_column * 10

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.