def test_by():
    expr = by(0 > t.amount, count=t.id.count())
    result = compute(expr, x)
    assert set(map(tuple, into(list, result))) == set([(False, 2), (True, 3)])
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_numpy_compute.py/test_by/swapped operands of `>`