Home | History | Annotate | Download | only in external

Lines Matching refs:table

295     # Generate a table of sorted (value, frequency) pairs.
296 table = collections.Counter(iter(data)).most_common()
297 if not table:
298 return table
300 maxfreq = table[0][1]
301 for i in range(1, len(table)):
302 if table[i][1] != maxfreq:
303 table = table[:i]
305 return table
468 # Generate a table of sorted (value, frequency) pairs.
469 table = _counts(data)
470 if len(table) == 1:
471 return table[0][0]
472 elif table:
474 'no unique mode; found %d equally common values' % len(table)