def test_valuecounts_shortrows():

    table = (('foo', 'bar'),
             ('a', True),
             ('x', True),
             ('b',),
             ('b', True),
             ('c', False),
             ('z', False))
    actual = valuecounts(table, 'bar')
    expect = (('bar', 'count', 'frequency'),
              (True, 3, 6/3.),
              (False, 2, 2./6),
              (None, 1, 1./6))
    ieq(expect, actual)
    ieq(expect, actual)
dataset/ETHPy150Open alimanfoo/petl/petl/test/util/test_counting.py/test_valuecounts_shortrows/swapped operands of `/`