onetick.py.Operation.__mod__#

Operation.__mod__(other)#

Return modulo of division of int column by other value.

Parameters

other (int, onetick.py.Column) –

Examples

>>> t = otp.Tick(A=3, B=3)
>>> t['A'] = t['A'] % t['B']
>>> t['B'] = t['B'] % 2
>>> otp.run(t)[['A', 'B']]
   A  B
0  0  1