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 moduloselfagainst. Ifotheris a column, the modulus is performed pairwise between corresponding elements ofselfandother.
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_Errorwarning is attached to the result.