onetick.py.Operation.__and__#

Operation.__and__(other)#

Return logical and in filter operation.

Examples

>>> t = otp.Ticks(A=[1, 1], B=[1, 2])
>>> t, _ = t[(t['A'] == 1) & (t['B'] == 1)]
>>> otp.run(t)[['A', 'B']]
   A  B
0  1  1