(data)
return list(map(itemgetter(0), mode_items))
Return a list of the most frequently occurring values.

    Will return more than one result if there are multiple modes
    or an empty list if *data* is empty.

    >>> multimode('aabbbbbbbbcc')
    ['b']
    >>> multimode('aabbbbccddddeeffffgg')
    ['b', 'd', 'f']
    >>> multimode('')
    []
Return a list of the most frequently occurring values.
Return a list of the most frequently occurring values .
def multimode(data):
    """Return a list of the most frequently occurring values.

    Will return more than one result if there are multiple modes
    or an empty list if *data* is empty.

    >>> multimode('aabbbbbbbbcc')
    ['b']
    >>> multimode('aabbbbccddddeeffffgg')
    ['b', 'd', 'f']
    >>> multimode('')
    []
    """
    counts = Counter(iter(data)).most_common()
    maxcount, mode_items = next(groupby(counts, key=itemgetter(1)), (0, []))
    return list(map(itemgetter(0), mode_items))
def multimode ( data ) : counts = Counter ( iter ( data ) ) . most_common ( ) maxcount , mode_items = next ( groupby ( counts , key = itemgetter ( 1 ) ) , ( 0 , [ ] ) ) return list ( map ( itemgetter ( 0 ) , mode_items ) )