We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Return the most common data point from discrete or nominal data. The mode (when it exists) is the most typical value, and is a robust measure of central location.
If data is empty, or if there is not exactly one most common value, StatisticsError is raised.
mode assumes discrete data, and returns a single value. This is the standard treatment of the mode as commonly taught in schools:
Day 0: Mean, Median, and Mode
You are viewing a single comment's thread. Return to all comments →
statistics.mode(data)
Return the most common data point from discrete or nominal data. The mode (when it exists) is the most typical value, and is a robust measure of central location.
If data is empty, or if there is not exactly one most common value,
StatisticsError
is raised.mode
assumes discrete data, and returns a single value. This is the standard treatment of the mode as commonly taught in schools:Source