Skip to main content

Column.%

%other

Group: Operators
Aliases: modulo, modulus

Documentation

Element-wise modulus.

Returns a column with results of modulus this column's elements against other.

Arguments

  • other: The value to modulo self against. If other is a column, the modulus is performed pairwise between corresponding elements of self and other.

Examples

Modulus of two columns against each other.

      import Standard.Examples

example_mod = Examples.integer_column % Examples.decimal_column

Modulus of a column with a number.

      import Standard.Examples

example_mod = Examples.integer_column % 3

Errors

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