Home | History | Annotate | Download | only in external

Lines Matching defs:mode

35 mode                Mode (most common value) of data.
98 'mean', 'mode',
451 def mode(data):
454 ``mode`` assumes discrete data, and returns a single value. This is the
455 standard treatment of the mode as commonly taught in schools:
457 >>> mode([1, 1, 2, 3, 3, 3, 3, 4])
462 >>> mode(["red", "blue", "blue", "red", "green", "red", "red"])
465 If there is not exactly one most common value, ``mode`` will raise
474 'no unique mode; found %d equally common values' % len(table)
477 raise StatisticsError('no mode for empty data')