Mean
noun
say it: “MEEN” /ˈmin/
The average of a set of numbers: their total divided by how many numbers there are.
What is the mean of a column?
The mean is the average: add the values up and divide by how many there are. One very large or very small value
can pull it a long way, which is why the median is often shown beside it. In pandas it's mean().
import pandas as pd
rents = pd.Series([1200, 1350, 1300, 1250, 4900])
print(rents.mean()) # 2000.0: pulled up by the one 4900
print(rents.median()) # 1300.0
In a sentence
- “The mean rent was $2,000, though four of the five listings were under $1,400.”
- “pandas' describe() lists the mean of every number column.”
Level: Novice · More Python terms at this level
Updated