def test_mean(): assert compute(mean(t['amount']), data) == float(100 + 200 + 50) / 3 assert 50 < compute(std(t['amount']), data) < 100