Skip to main content

Column./

/other

Group: Operators
Aliases: divide

Documentation

Element-wise division.

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

Arguments

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

Examples

Divide the elements of one column by the elements of another.

      import Standard.Examples

example_div = Examples.decimal_column / Examples.integer_column

Multiply each value in a column by a single value.

      import Standard.Examples

example_div = Examples.integer_column / 10

Errors

  • If division by zero occurs, an Arithmetic_Error warning is attached to the result.

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.