Skip to content

MostFrequent() Source

Bases: Statistic

Value that appears the most often.

Works on any type, text included. Missing values are ignored.

Added in version 0.1.0

Examples:

import numdaplot as ndp

sizes = ndp.Array.from_list(["M", "L", "M"])
sizes.compute(ndp.MostFrequent()).to_value()
# 'M'