onetick.py.Operation.__abs__#

Operation.__abs__()#

Return the absolute value of float or int column.

Examples

>>> t = otp.Tick(A=-1, B=-2.3)
>>> t['A'] = abs(t['A'])
>>> t['B'] = abs(t['B'])
>>> otp.run(t)[['A', 'B']]
   A    B
0  1  2.3