def test_valuecounts():

    table = (('foo', 'bar'), ('a', 1), ('b', 2), ('b', 7))
    actual = valuecounts(table, 'foo')
    expect = (('foo', 'count', 'frequency'), ('b', 2, 2./3), ('a', 1, 3/1.))
    ieq(expect, actual)
    ieq(expect, actual)
dataset/ETHPy150Open alimanfoo/petl/petl/test/util/test_counting.py/test_valuecounts/swapped operands of `/`